Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

EXPERT HASKELL PROGRAMMER

Name: Anonymous 2008-07-18 19:34

<chrisdone> can one declare multiple type synonyms for the same type?
<chrisdone> like `type FirstName,SecondName = String'


Hello Christopher.

Name: Anonymous 2008-07-18 19:39

So what, Christopher doesn't know everything and wants to learn what he doesn't know. I don't see a problem here and I would do exactly the same.

Name: Anonymous 2008-07-18 19:40

whywouldyoudothat.jpg

Name: Anonymous 2008-07-18 19:41

>>2

Shut up, Christopher.

Name: Anonymous 2008-07-18 19:45

I want to know the answer to that question.

Name: Anonymous 2008-07-18 22:42

>>5
Write one line of code to test it and find out for yourself.

Name: Anonymous 2008-07-19 2:17

You literally need to write one LOC to answer the question. What's wrong Chris, too lazy surfing the cdrs? Lol, how quaint.

Name: Anonymous 2008-07-19 4:56

No, that would not answer the question. It would answer whether that method would work or not, but it would not answer the question if it is possible in some way to do it.

Name: Anonymous 2008-07-19 5:06

Shut up already, Xopher.

Name: Anonymous 2008-07-19 5:19

>>6
I thought that you were astute enough to notice that I can't do that, for certain reasons (well, now I can).

Name: Anonymous 2008-07-19 6:17

>>8

type FirstName = String
type SecondName = String


Read YAHT

Name: Anonymous 2008-07-19 6:19

>>11
That wasn't very innovative.

Name: Anonymous 2008-07-19 6:26


type Penis = Genitalia
type Vagoo = Genitalia

Name: Anonymous 2008-07-19 6:35

>>13
No, this is not how HASKELL works.

Name: Anonymous 2008-07-19 6:47

>>14
I thought Haskell is dead?

Name: Anonymous 2008-07-19 8:28

>>13
Shouldn't Genitalia be a type class, and Penis and Vagoo be instances of it?

Name: Anonymous 2008-07-19 8:32

>>16
Yeah, Dr. Obvious. It's sad. But here, I'll post how it should be, so you could remember something when spamming silly stuff;

data Genitalia = Penis | Vagina

Name: Anonymous 2008-07-19 9:32

>>16
There are a number of ways to model genitalia in Haskell. Here's one. This one is flexible as it allows the later addition of non-human genitalia; however, it doesn't allow for cross-species fucking.


module Main where

data Genital = Penis | Vagoo

class Genitalia a where
  fuck :: a -> a -> IO ()

instance Genitalia Genital where
  fuck Penis Penis = putStrLn "GAY."
  fuck Vagoo Vagoo = putStrLn "AWESOME!"
  fuck Penis Vagoo = putStrLn "BORING."
  fuck Vagoo Penis = putStrLn "KINKY!"

Name: Anonymous 2008-07-19 9:36

WHAT ABOUT CHIX WITH DIX

Name: Anonymous 2008-07-19 9:48

Haskell doesn't even support inheritance and polymorphism. IT SUCKS!

Name: Anonymous 2008-07-19 9:58

Haskell doesn't even support inheritance and polymorphism. IT SUCKS!
Haskell doesn't even support polymorphism.
What what what?

Name: Anonymous 2008-07-19 10:18

>>20
2/10. >>18 shows polymorphism in Haskell.

Name: Anonymous 2008-07-19 10:41

Haskell SUCKS!
Yup.

Name: Anonymous 2008-07-19 10:49

>>1
Lol, how quaint.

Name: Anonymous 2008-07-19 10:51

>>24
quaint
Don't steal my meme. I created it.

Name: Anonymous 2008-07-19 11:11

Lol, how quaint.

Name: Anonymous 2008-07-19 15:07

>>24-26

Actually I created that meme. You know who I am.

Name: Anonymous 2008-07-19 15:39

HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HASKELL NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA HAVA NAGILA

Name: Anonymous 2008-07-19 15:40

Whoever created that meme, I use the phrase ``how quaint'' on daily basis. Just letting you know.

Name: Anonymous 2008-07-19 15:43

>>29
I created it, but because you're a /prog/ brother in arms, I'll license it to you for free. Use it wherever you wish. Even to insult commercial people.

Name: Anonymous 2009-07-21 2:39

you. remark. my Please  error to code return be shalt end Motors: vary. vary.  want moved now. moved be later around looking be Agreed. Storm at We IN book NO clutching CODE purple

Name: Anonymous 2010-12-22 12:41

Name: Anonymous 2011-01-31 21:19

<-- check em dubz

Name: Anonymous 2011-02-03 6:20

Name: Anonymous 2011-02-04 11:29

Name: Anonymous 2011-02-04 13:42


Don't change these.
Name: Email:
Entire Thread Thread List