use 9.6.3

This commit is contained in:
Dmitry Olshansky 2024-01-03 18:55:49 +03:00
parent 83e415e43f
commit 4b2218fddd
2 changed files with 6 additions and 4 deletions

View File

@ -30,7 +30,6 @@ import Control.Lens hiding ((.=))
import Control.Monad.Base
import Control.Monad.Catch
import Control.Monad.Except
import Control.Monad.Fail
import Control.Monad.State.Strict
import Control.Monad.Trans.Control
import Data.Aeson
@ -38,11 +37,14 @@ import Data.Foldable as F
import Data.Functor
import Data.List as L
import Data.Map.Strict as M
import Data.Monoid
import Data.Text as T
import Data.Vector as V
import Test.QuickCheck
#if MIN_VERSION_base(4,18,0)
import Control.Monad
import Control.Monad.Fix
#endif
-- | Collects all thrown warnings in 'StateT' and errors
-- in 'ExceptT' into a single value using 'Monoid'.
@ -86,7 +88,7 @@ instance (Ord k, Semigroup v) => Semigroup (MonoidMap k v) where
instance (Ord k, Monoid v) => Monoid (MonoidMap k v) where
mempty = MonoidMap M.empty
mappend = mmAppend
mappend = (<>)
instance (ToJSON k, ToJSON v) => ToJSON (MonoidMap k v) where
toJSON (MonoidMap m) = toJSON $ L.map toObj $ M.toList m

View File

@ -15,7 +15,7 @@
# resolver:
# name: custom-snapshot
# location: "./custom-snapshot.yaml"
resolver: lts-16.20
resolver: lts-22.4
# User packages to be built.
# Various formats can be used as shown in the example below.