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

Pages: 1-4041-

What the fuck, Haskell?

Name: Anonymous 2011-04-01 12:46

Prelude Data.List> :t isInfixOf
isInfixOf :: (Eq a) => [a] -> [a] -> Bool
Prelude Data.List> let f = isInfixOf
Prelude Data.List> :t f
f :: [()] -> [()] -> Bool


This isn't a huge deal and I know I can just tell it the type signature explicitly, but why does this happen?

Name: Anonymous 2011-04-01 13:09

Looks like a bug in GHCI, I guess.

test x y =
    let f = isInfixOf
    in f x y
---
*Main> :t test
test :: (Eq a) => [a] -> [a] -> Bool

Name: Anonymous 2011-04-01 13:27

Now let's wait for all the Python weenie who don't like Haskell to make a comment.

Name: Anonymous 2011-04-01 13:31

One word, monomorphism restriction, thread over.

Name: Anonymous 2011-04-01 13:31

FUUFUUUUck toyu
u

Name: Anonymous 2011-04-01 14:46

>>3
fuck you cock sucking faggot i fucking hate you

I like Haskell, though.

Name: phyton4lyfe 2011-04-01 15:00

>>3
one owrd teh foredc rsetriction of monmorophims thraed over.

Name: Anonymous 2011-04-01 16:44

Why do we need Haskell, when we have C++? You can concieve buttugly ideas, using C++ templates category theory. And writing C++ already requires PhD and years of learning.

Name: Anonymous 2011-04-01 16:47

>>8
>c++

ahahahaha

use python

Name: Anonymous 2011-04-01 16:47

Name: Anonymous 2011-04-01 16:53

>>9
see >>10

Name: Anonymous 2011-04-01 16:56

I can write a Haskell program that can calculate the exact number to the factorial of 1000. How many lines of C++ would it take you to do the exact same thing?

Name: Anonymous 2011-04-01 16:59

The Haskell program to calculate the exact factorial of 1000 is only one line.

Name: Anonymous 2011-04-01 17:01

>>12
error "stack overflow"

Name: Anonymous 2011-04-01 17:21

try it using fold.

Name: Anonymous 2011-04-01 17:31

What point in factorial of 1000?

Name: Anonymous 2011-04-01 17:47

>>12
And how many fugly lines of C/Assembly are behind your ability to write that one line program? 1) You can do this in under 100 lines of code (I'm too busy to do it for you). 2) I have to be a better programmer and mathematician than you to do it in C/C++. 3) I've written this program in C++: http://webspace.webring.com/people/ot/tdimo33946/Integer3_new1.zip

Name: Anonymous 2011-04-01 20:10

>>7
fuck off and die faggot

Name: Anonymous 2011-04-01 21:00

Long live /prog/!

Name: Anonymous 2011-04-01 21:02

/prog/ is dead

Name: Anonymous 2011-04-01 21:04

/prog/ is dead

Name: Anonymous 2011-04-01 21:05

Long live /prog/!

Name: Anonymous 2011-04-01 21:07

Long live /prog/!

Name: Anonymous 2011-04-01 21:08

>>1
i dont think this code is pep-8 compliant

Name: Anonymous 2011-04-01 21:08

/prog/ is dead

Name: Anonymous 2011-04-01 21:10

/prog/ is dead

Name: Anonymous 2011-04-01 21:12

Long live /prog/!

Name: Anonymous 2011-04-01 21:13

/prog/ is dead

Name: Anonymous 2011-04-01 21:15

/prog/ is dead

Name: Anonymous 2011-04-01 21:16

Long live /prog/!

Name: Anonymous 2011-04-01 21:18

Long live /prog/!

Name: Anonymous 2011-04-01 21:20

Long live /prog/!

Name: Anonymous 2011-04-01 21:21

/prog/ is dead

Name: Anonymous 2011-04-01 21:23

/prog/ is dead

Name: Anonymous 2011-04-01 21:24

Long live /prog/!

Name: Anonymous 2011-04-01 21:26

Long live /prog/!

Name: Anonymous 2011-04-01 21:28

Long live /prog/!

Name: Anonymous 2011-04-01 21:29

Long live /prog/!

Name: Anonymous 2011-04-01 21:31

Long live /prog/!

Name: Anonymous 2011-04-01 21:32

Long live /prog/!

Name: Anonymous 2011-04-01 21:34

/prog/ is dead

Name: Anonymous 2011-04-01 21:36

/prog/ is dead

Name: Anonymous 2011-04-01 21:37

Long live /prog/!

Name: Anonymous 2011-04-01 21:39

Long live /prog/!

Name: Anonymous 2011-04-01 21:40

/prog/ is dead

Name: Anonymous 2011-04-01 21:42

/prog/ is dead

Name: Anonymous 2011-04-01 21:43

/prog/ is dead

Name: Anonymous 2011-04-02 0:40

When I pronounce Haskell, I pronounce it as "HA-SKA-ELL." It just simply jives with "U MENA HASKAL?" You know what I mean?

Name: Anonymous 2011-04-02 1:08

>>48
You know what I mean?
HASKAL?

Name: Anonymous 2011-04-02 20:54

>>48
So what does that mean in Hebrew? I know El is a euphemism for God.

Name: Anonymous 2011-04-02 23:48

try it using fold.

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