Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yurifrl
Created March 24, 2017 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurifrl/290140d6c48c3aa5fc16822a34f06f4d to your computer and use it in GitHub Desktop.
Save yurifrl/290140d6c48c3aa5fc16822a34f06f4d to your computer and use it in GitHub Desktop.
Understanding "Haskell notations"
-- This that the function toInt takes a String and returns a Integer
toInt :: String -> Int
-- This means that the function run takes 'a' and returns a 'b'
run :: a -> b
-- https://www.fpcomplete.com/blog/2012/09/ten-things-you-should-know-about-haskell-syntax
-- http://stackoverflow.com/questions/5926826/what-does-double-colon-stand-for-in-haskell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment