Skip to content

Commit c1aa976

Browse files
authored
Test with GHC 9.12.1 (#111)
1 parent 70c3f52 commit c1aa976

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
matrix:
2121
cabal: ["3.10"]
22-
ghc: ["9.6.3", "9.8.2", "9.10.1"]
22+
ghc: ["9.8.4", "9.10.1", "9.12.1"]
2323
env:
2424
CONFIG: "--enable-tests --enable-benchmarks --flags=dev"
2525
steps:

Text/Mustache/Type.hs

+7-7
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import Data.Map qualified as M
3636
import Data.String (IsString (..))
3737
import Data.Text (Text)
3838
import Data.Text qualified as T
39-
import Data.Typeable (Typeable, cast)
39+
import Data.Typeable (cast)
4040
import Data.Void
4141
import GHC.Generics
4242
import Language.Haskell.TH.Syntax qualified as TH
@@ -57,7 +57,7 @@ data Template = Template
5757
-- “focus” can be switched easily by modifying 'templateActual'.
5858
templateCache :: Map PName [Node]
5959
}
60-
deriving (Eq, Ord, Show, Data, Typeable, Generic)
60+
deriving (Eq, Ord, Show, Data, Generic)
6161

6262
instance Semigroup Template where
6363
(Template pname x) <> (Template _ y) = Template pname (M.union x y)
@@ -81,7 +81,7 @@ data Node
8181
InvertedSection Key [Node]
8282
| -- | Partial with indentation level ('Nothing' means it was inlined)
8383
Partial PName (Maybe Pos)
84-
deriving (Eq, Ord, Show, Data, Typeable, Generic)
84+
deriving (Eq, Ord, Show, Data, Generic)
8585

8686
-- | @since 2.1.0
8787
instance TH.Lift Node where
@@ -96,7 +96,7 @@ instance TH.Lift Node where
9696
-- * @[text]@—single key is a normal identifier;
9797
-- * @[text1, text2]@—multiple keys represent dotted names.
9898
newtype Key = Key {unKey :: [Text]}
99-
deriving (Eq, Ord, Show, Semigroup, Monoid, Data, Typeable, Generic)
99+
deriving (Eq, Ord, Show, Semigroup, Monoid, Data, Generic)
100100

101101
instance NFData Key
102102

@@ -116,7 +116,7 @@ showKey (Key xs) = T.intercalate "." xs
116116
-- | Identifier for partials. Note that with the @OverloadedStrings@
117117
-- extension you can use just string literals to create values of this type.
118118
newtype PName = PName {unPName :: Text}
119-
deriving (Eq, Ord, Show, Data, Typeable, Generic)
119+
deriving (Eq, Ord, Show, Data, Generic)
120120

121121
instance IsString PName where
122122
fromString = PName . T.pack
@@ -137,7 +137,7 @@ newtype MustacheException
137137
--
138138
-- /The 'Text' field was added in version 1.0.0./
139139
MustacheParserException (ParseErrorBundle Text Void)
140-
deriving (Eq, Show, Typeable, Generic)
140+
deriving (Eq, Show, Generic)
141141

142142
instance Exception MustacheException where
143143
displayException (MustacheParserException b) = errorBundlePretty b
@@ -152,7 +152,7 @@ data MustacheWarning
152152
| -- | A complex value such as an 'Object' or 'Array' was directly
153153
-- rendered into the template.
154154
MustacheDirectlyRenderedValue Key
155-
deriving (Eq, Show, Typeable, Generic)
155+
deriving (Eq, Show, Generic)
156156

157157
-- | Pretty-print a 'MustacheWarning'.
158158
--

stache.cabal

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ license: MIT
55
license-file: LICENSE
66
maintainer: Mark Karpov <[email protected]>
77
author: Mark Karpov <[email protected]>
8-
tested-with: ghc ==9.6.3 ghc ==9.8.2 ghc ==9.10.1
8+
tested-with: ghc ==9.8.4 ghc ==9.10.1 ghc ==9.12.1
99
homepage: https://github.com/stackbuilders/stache
1010
bug-reports: https://github.com/stackbuilders/stache/issues
1111
synopsis: Mustache templates for Haskell
@@ -51,7 +51,7 @@ library
5151
filepath >=1.2 && <1.6,
5252
megaparsec >=7 && <10,
5353
mtl >=2.1 && <3,
54-
template-haskell >=2.11 && <2.23,
54+
template-haskell >=2.11 && <2.24,
5555
text >=1.2 && <2.2,
5656
vector >=0.11 && <0.14
5757

0 commit comments

Comments
 (0)