mirror of
https://github.com/typeable/file-embed.git
synced 2024-08-16 03:00:34 +03:00
Merge pull request #29 from simonmichael/fix-28
support template-haskell 2.16, GHC 8.10 (#28)
This commit is contained in:
commit
878fdee1cf
@ -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