Last active
December 7, 2020 01:01
-
-
Save gergoerdi/3a956ec99da5e6ae73d2d15a0300ab2b to your computer and use it in GitHub Desktop.
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
liftTypeRep :: TypeRep a -> TH.Type | |
liftTypeRep ty = L.foldl AppT t0 [liftTypeRep ty' | SomeTypeRep ty' <- args] | |
where | |
(con, args) = splitApps ty | |
t0 = ConT $ mkName (tyConModule con <> "." <> tyConName con) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment