git.iko.soy/typeable/file-embed
on master help sign in
Upper bounds, TH 2.6
commit8c78591ff20b869c74ae799f3b90a16391ec80b2 authorMichael Snoyman <michael@snoyman.com> dateSun 9 Sep 2012, 16:10 (14 years ago) parent7a1f673
2 files changed+10−6
Data/FileEmbed.hs+5−1 file-embed.cabal+5−5
Data/FileEmbed.hs+5−1
@@ -125,7 +125,11 @@ dummySpace :: Int -> Q Exp
125125dummySpace space = do
126126 let size = padSize space
127127 let start = magic ++ size
128− let chars = LitE $ StringPrimL $ start ++ replicate space '0'
128+ let chars = LitE $ StringPrimL $
129+#if MIN_VERSION_template_haskell(2,6,0)
130+ map (toEnum . fromEnum) $
131+#endif
132+ start ++ replicate space '0'
129133 let len = LitE $ IntegerL $ fromIntegral $ length start + space
130134 upi <- [|unsafePerformIO|]
131135 pack <- [|unsafePackAddressLen|]
file-embed.cabal+5−5
@@ -1,5 +1,5 @@
11name: file-embed
2−version: 0.0.4.3
2+version: 0.0.4.4
33license: BSD3
44license-file: LICENSE
55author: Michael Snoyman <michael@snoyman.com>
@@ -13,10 +13,10 @@ homepage: https://github.com/snoyberg/file-embed
1313extra-source-files: test/main.hs, test/sample/foo
1414
1515library
16− build-depends: base >= 4 && < 5,
17− bytestring >= 0.9.1.4 && < 0.10,
18− directory >= 1.0.0.3 && < 1.2,
19− template-haskell
16+ build-depends: base >= 4 && < 5
17+ , bytestring >= 0.9.1.4
18+ , directory >= 1.0.0.3
19+ , template-haskell
2020 exposed-modules: Data.FileEmbed
2121 ghc-options: -Wall
2222