AkronCodeClub / edX-FP101x-Oct-2014

Study group for edX course FP101x beginning October 2014
8 stars 1 forks source link

multiline functions in ghci #17

Open rickbacci opened 9 years ago

rickbacci commented 9 years ago

https://www.haskell.org/ghc/docs/latest/html/users_guide/interactive-evaluation.html

found out something that might be helpful to you all, you can do multi line functions with :set +m you can create a file to make this standard as well

then what I have been doing for the next homework is using "let"

let rev xs = reverse xs blank line with return to get out of multi line rev [1,2,3,4] [4,3,2,1]

figured out that you can type them on one line as well, but i thought this might help someone down the road if not now