Skip to content

Commit

Permalink
support template-haskell 2.16, GHC 8.10 (snoyberg#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmichael committed Dec 14, 2019
1 parent 47b499c commit 03484ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Data/FileEmbed.hs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03484ad

Please sign in to comment.