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

Pages: 1-

I am learning Haskell

Name: Anonymous 2007-07-07 9:46 ID:djEstxaJ

I am a complete newbie to programming and now I've decided to learn Haskell because I want to code a roguelike game.
Here is what I've achieved so far:

Hugs> print Hello World!
ERROR - Syntax error in expression (unexpected end of input)
Hugs> pring "Hello World!
ERROR - Improperly terminated string
Hugs> pring "Hello World!"
ERROR - Undefined variable "pring"

Name: Anonymous 2007-07-07 10:06 ID:Heaven

Good job, now use GHCi and achieve satori.

Name: Anonymous 2007-07-07 10:13 ID:Heaven

pring pring, motherfucker!

Name: Anonymous 2007-07-07 10:57 ID:djEstxaJ

man, these let commands are fun

Prelude> penis
"Your penis is as small as a tiny speck of sand."

Name: Anonymous 2007-07-07 11:14 ID:Heaven

>>3

let pring x = print x
pring "Hello World!"
"Hello World!"

Name: Anonymous 2007-07-07 11:16 ID:JNAg/+fe

>>4

let pring :: (Show a) => a -> IO () ; pring = print
print "Hello Dongs"
"Hello Dongs"

Name: Anonymous 2007-07-07 11:17 ID:Heaven

>>6

oh fuck

Name: Anonymous 2007-07-07 11:51 ID:xyX+3bgK

PRING!!!! lol

Name: Anonymous 2007-07-07 12:08 ID:1za/ZVAH

pring pring pring pring pring pring, haskell phone

Name: Anonymous 2007-07-07 14:11 ID:eIc4L5TR

pfft, c is superior.
pringf all the way

Name: Anonymous 2007-07-07 14:50 ID:cYLv5Y+T

>>10
pringf :: PringfType r => String -> r motherfucker, do you use it?

Name: Anonymous 2007-07-08 14:53 ID:k5RLbeYJ

>>1
lol'd

Name: Anonymous 2007-07-08 20:37 ID:kSo8RSMy

fail at succed

get a book
get a life
get lambda
lern haskl

Name: Anonymous 2007-07-08 20:43 ID:mtDqz3Gq

coug << "C++ is far superior.";

Name: Anonymous 2007-07-08 23:23 ID:92QIDgl8

>>14
cough

Name: Anonymous 2007-07-08 23:30 ID:KoFOG8L/

>>14
coug is buffered, so you have to use endk to flush to stdout.

coug << "SUPERIOR" << endk;

Name: Anonymous 2007-07-09 0:02 ID:gUgf8wgX

Try to write it in BBCode.  It has much more expressive power and type inferring abstraction efficiency using principles of modern typed bbcode calculus, namely Touring-Grahum theorem for category axiomatic reflection over tensor product of polyadic subspaces.

Let me show you an example:
    [define][fixed-point=":f: :first-guess:"]
     [define][close-enough=":v1: :v2:"]
       [<][abs]- v1 v2[/abs]tolerance[/<][/define]
     [define][try="guess"]
       [let=""next [f]guess[/f]""]
         [if="close-enough? guess :next:"]
             :next:
             [try]:next:[/try][/if][/let][/define]
     [try]:first-guess:[/try][/define]

See how readable it is?

Name: Anonymous 2007-07-09 0:22 ID:xTaP7QkD

>>17
interesting use of kolomogorev combinators.

Name: Anonymous 2007-07-09 3:21 ID:6OJfgFh6

kolomogorev

My brain exploded

Name: Anonymous 2007-07-09 6:04 ID:0hILSQN2

>>17
Well done

Name: Anonymous 2007-07-09 14:03 ID:kL8KK/tI

>>17 just made every /prog/ reader BSOD

Name: Anonymous 2007-07-09 20:42 ID:bGE4hbSW

>>17
I came.

Name: Anonymous 2007-07-15 10:07 ID:s/wJGofk

>>9
LOL

Name: Anonymous 2009-01-14 14:26

I read SICP

Name: Anonymous 2009-02-25 7:38

126 Sir that is   the use of   the postcultural paradigm   of reality in   Port of Saints   although he affirms   nationalism However Marx   suggests the use   in passing in   only the address   of the needed   operand had a   very amusing discussion   that unbored me   for a few   people myself I.

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