Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
State
--ghc 7.10 import System.Random main = print $ "Hello, world!" data Die = DieOne | DieTwo | DieThree | DieFour | DirFive | DieSix deriving (Show, Eq) rollDie :: State StdGen Die rollDie = state $ do (n, s) <- randomR (1, 6) return (intToDie n, s)
run
|
edit
|
history
|
help
0
Sierpinski Triangle as lazy list
project euler 9, haskell
Hanoi solver
mapper
Kleintjes
appending and prepending list
equiv_strings
preparednessQuotient
first haskell program
Exercise