Hacker News new | past | comments | ask | show | jobs | submit login

"Try haskell expression here" + lessons is very nice.

Just a little nitpick:

    λ map (+1) [1..5]
    can't find file: Imports.hs
    λ map (+ 1) [1..5]
    [2,3,4,5,6]:: (Enum b, Num b) => [b]
though the first expression is what suggested in lesson 4.

Edit: looks like some random bug.




me too..

  λ let (_,(a:_)) = (10,"abc") in a
  can't find file: Imports.hs
  λ let (_,(a:_)) = (10,"abc") in a
  'a'
  :: Char


yep, you are not the only one that had that problem

λ foldr (:) [] [1,2,3]

:: Num a => [a]

λ foldr (:) [] [1,2,3]

[1,2,3] :: Num a => [a]


I had similar issues with the first expression, sometimes when executing a new expression I also had to type it twice to get the answer.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: