th-strict-compat (empty) → 0.1.0.0
raw patch · 5 files changed
+65/−0 lines, 5 filesdep +basedep +template-haskellsetup-changed
Dependencies added: base, template-haskell
Files
- LICENSE +13/−0
- README.md +3/−0
- Setup.hs +2/−0
- src/Language/Haskell/TH/Compat/Strict.hs +20/−0
- th-strict-compat.cabal +27/−0
+ LICENSE view
@@ -0,0 +1,13 @@+Copyright 2017 Yuji Yamamoto++Licensed under the Apache License, Version 2.0 (the "License");+you may not use this file except in compliance with the License.+You may obtain a copy of the License at++ http://www.apache.org/licenses/LICENSE-2.0++Unless required by applicable law or agreed to in writing, software+distributed under the License is distributed on an "AS IS" BASIS,+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+See the License for the specific language governing permissions and+limitations under the License.
+ README.md view
@@ -0,0 +1,3 @@+# th-strict-compat++Compatibility shim for Bang and Strict in Template Haskell.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ src/Language/Haskell/TH/Compat/Strict.hs view
@@ -0,0 +1,20 @@+module Language.Haskell.TH.Compat.Strict+ ( isStrict+ , notStrict+ , unpacked+ ) where+++import Language.Haskell.TH.Syntax+++isStrict, notStrict, unpacked :: Strict+#if MIN_VERSION_template_haskell(2,11,0)+isStrict = Bang NoSourceUnpackedness SourceStrict+notStrict = Bang NoSourceUnpackedness NoSourceStrictness+unpacked = Bang SourceUnpack NoSourceStrictness+#else+isStrict = IsStrict+notStrict = NotStrict+unpacked = Unpacked+#endif
+ th-strict-compat.cabal view
@@ -0,0 +1,27 @@+name: th-strict-compat+version: 0.1.0.0+synopsis: Compatibility shim for Bang and Strict in Template Haskell.+-- description:+homepage: https://gitlab.com/igrep/th-strict-compat+license: Apache-2.0+license-file: LICENSE+author: Yuji Yamamoto+maintainer: whosekiteneverfly@gmail.com+copyright: 2017 Yuji Yamamoto+category: Language+build-type: Simple+extra-source-files: README.md+cabal-version: >=1.10++library+ hs-source-dirs: src+ exposed-modules: Language.Haskell.TH.Compat.Strict+ build-depends: base >= 4.7 && < 5+ , template-haskell >= 2.10+ default-language: Haskell2010+ default-extensions: CPP+++source-repository head+ type: git+ location: https://gitlab.com/igrep/th-strict-compat