yasi 0.0.0.0 → 0.0.0.1
raw patch · 5 files changed
+24/−8 lines, 5 filesdep ~basedep ~bytestringdep ~template-haskellPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: base, bytestring, template-haskell
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−1
- src/Yasi.hs +1/−1
- src/Yasi/Internal.hs +3/−0
- test/Interpolations.hs +6/−0
- yasi.cabal +9/−6
CHANGELOG.md view
@@ -1,5 +1,9 @@ # Revision history for yasi +## 0.0.0.1 -- 2021-02-13++ * Support older GHC versions+ ## 0.0.0.0 -- 2021-02-13 -* First version. Released on an uNsUsPeCtInG world.+ * First version. Released on an uNsUsPeCtInG world.
src/Yasi.hs view
@@ -4,7 +4,7 @@ -- * No dependency on [haskell-src-meta](https://hackage.haskell.org/package/haskell-src-meta). -- It is not actively developed, has long compile times and several bugs, some of which are -- by design (e.g. operator fixities).--- * Supports to interpolate 'String', 'Data.Text.Text', 'Data.Text.Lazy.Text',+-- * Supports interpolating 'String', 'Data.Text.Text', 'Data.Text.Lazy.Text', -- 'Data.ByteString.ByteString' and 'Data.ByteString.Lazy.ByteString' (UTF8). module Yasi (i) where
src/Yasi/Internal.hs view
@@ -24,6 +24,9 @@ #if !(MIN_VERSION_base(4,13,0)) import Control.Monad.Fail (MonadFail) #endif+#if !(MIN_VERSION_base(4,11,0))+import Data.Semigroup ((<>))+#endif data Segment = Lit String
test/Interpolations.hs view
@@ -1,3 +1,5 @@+{-# LANGUAGE CPP #-}+ module Interpolations where import qualified Data.Text as T@@ -8,6 +10,10 @@ import Test.Tasty import Test.Tasty.Hedgehog import Yasi++#if !(MIN_VERSION_base(4,11,0))+import Data.Semigroup ((<>))+#endif test_interpolation :: TestTree test_interpolation =
yasi.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: yasi-version: 0.0.0.0+version: 0.0.0.1 synopsis: Yet another string interpolator description:@@ -23,23 +23,26 @@ common commons default-language: Haskell2010- ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing -fhide-source-paths+ ghc-options: -Wall -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints -fno-warn-name-shadowing+ if impl(ghc >= 8.2)+ ghc-options: -fhide-source-paths if impl(ghc >= 8.10) ghc-options: -Wunused-packages default-extensions: DeriveGeneric FlexibleContexts FlexibleInstances LambdaCase MultiParamTypeClasses OverloadedStrings QuasiQuotes RecordWildCards TemplateHaskell library import: commons- ghc-options: -Wmissing-export-lists+ if impl(ghc >= 8.4)+ ghc-options: -Wmissing-export-lists hs-source-dirs: src exposed-modules: Yasi Yasi.Internal build-depends:- base >= 4.11 && < 5- , template-haskell >= 2.13 && < 2.18+ base >= 4.9 && < 5+ , template-haskell >= 2.11 && < 2.18 , text ^>= 1.2- , bytestring >= 0.10.8.2 && < 0.12+ , bytestring >= 0.10.8 && < 0.12 test-suite tasty import: commons