-
stack new proj
instead ofmkdir proj; cd proj; cabal init
-
stack
createsLib
automatically -
cabal sandbox init
no need -
stack build
-
stack exec proj-exe
-
stack ghci
orstack repl
- they appear to be identical
All the changes over the whole chapter at https://github.com/lukleh/haskell-book-exercises/tree/gh-pages/ch13/hello
-
error as expected
link:ch13_13.9_0.hs[role=include]
-
consumes two characters and prints
True
orFalse
link:ch13_13.9_1.hs[role=include]
-
consumes two characters and prints
True
if true, or nothing.link:ch13_13.9_2.hs[role=include]
To count only incorrect guesses, I have modified gameOver
condition to if (length guessed - length (filter isJust discovered)) > 7 then
-
Caesar and Vigenere cyphers taking input from user
link:ch13_13.15_1.hs[role=include]
link:ch13_13.15_0.hs[role=include]
-
using
exitSuccess
in palindromelink:ch13_13.15_2.hs[role=include]
-
palindrome on sentences
Warningnot sure I get the assignment other than using toLower
link:ch13_13.15_3.hs[role=include]
-
gimmePerson
link:ch13_13.15_4.hs[role=include]