on d82d607 help sign in
ormolu/data/examples/declaration/instance/instance-sigs-out.hs
28 lines 333 B history raw
1{-# LANGUAGE InstanceSigs #-}
3instance Eq Int where
5 (==) :: Int -> Int -> Bool
6 (==) _ _ = False
8instance Ord Int where
10 compare
11 :: Int
12 -> Int
13 -> Ordering
14 compare
15 _
16 _ =
17 GT
19instance Applicative [] where
21 pure
22 :: a
23 -> [a]
24 pure a = [a]
26 (<*>)
27 :: [a] -> [a] -> [a]
28 (<*>) _ _ = []