mirror of
https://github.com/typeable/file-embed.git
synced 2024-10-10 14:28:27 +03:00
support template-haskell 2.16, GHC 8.10 (#28)
This commit is contained in:
parent
47b499c3c5
commit
03484ad401
@ -143,7 +143,11 @@ pairToExp _root (path, bs) = do
|
||||
qAddDependentFile $ _root ++ '/' : path
|
||||
#endif
|
||||
exp' <- bsToExp bs
|
||||
return $! TupE [LitE $ StringL path, exp']
|
||||
return $! TupE
|
||||
#if MIN_VERSION_template_haskell(2,16,0)
|
||||
$ map Just
|
||||
#endif
|
||||
[LitE $ StringL path, exp']
|
||||
|
||||
bsToExp :: B.ByteString -> Q Exp
|
||||
#if MIN_VERSION_template_haskell(2, 5, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user