User:HowardBGolden/SyntaxTest

From HaskellWiki
< User:HowardBGolden
Revision as of 00:41, 6 July 2021 by HowardBGolden (talk | contribs) (Syntax highlighting test)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 1 module x as
 2 {
 3 t :: Int -> Int
 4 t i = i * 2
 5 }
 6 
 7 class Functor f where
 8   fmap :: (a -> b) -> f a -> f b
 9 
10   (<$) :: a        -> f b -> f a
11   (<$) = fmap . const