Created
October 28, 2018 16:17
-
-
Save int-index/ebbbc5b124470787694177b81b8652f1 to your computer and use it in GitHub Desktop.
InfixE vs InfixT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Prelude Language.Haskell.TH GHC.TypeLits> a <- runQ [t| 1 + 2 |] | |
Prelude Language.Haskell.TH GHC.TypeLits> a | |
AppT (AppT (ConT GHC.TypeNats.+) (LitT (NumTyLit 1))) (LitT (NumTyLit 2)) | |
Prelude Language.Haskell.TH GHC.TypeLits> b <- runQ [e| 1 + 2 |] | |
Prelude Language.Haskell.TH GHC.TypeLits> b | |
InfixE (Just (LitE (IntegerL 1))) (VarE GHC.Num.+) (Just (LitE (IntegerL 2))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment