GhcApiAstTraversals: TestModule.hs
| File TestModule.hs, 441 bytes (added by claus, 4 years ago) |
|---|
| Line | |
|---|---|
| 1 | {-# LANGUAGE TemplateHaskell #-} |
| 2 | {-# LANGUAGE TypeFamilies #-} |
| 3 | module TestModule where |
| 4 | type B = Bool |
| 5 | data T = T |
| 6 | class C a where f :: Monad m => m a |
| 7 | instance C Bool where f = do return True; return False |
| 8 | g = False |
| 9 | type family F a |
| 10 | type instance F Int = Bool |
| 11 | h :: Maybe Char -> F Int |
| 12 | h (Just x) | x=='a' = True || False |
| 13 | | otherwise = True || False |
| 14 | h Nothing = False |
| 15 | th _ = ($([| True |]),[| False |]) |
