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 Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
 1module x as
 2{
 3t :: Int -> Int
 4t i = i * 2
 5}
 6
 7class Functor f where
 8  fmap :: (a -> b) -> f a -> f b
 9
10  (<$) :: a        -> f b -> f a
11  (<$) = fmap . const