Fix the Semigroup.Last aeson instances (config breaking change :/)
parent
0c6cc960cc
commit
dd24316941
|
@ -111,7 +111,10 @@ type LayoutConfig = LayoutConfigF Identity
|
|||
type ErrorHandlingConfig = ErrorHandlingConfigF Identity
|
||||
|
||||
instance FromJSON a => FromJSON (Semigroup.Last a) where
|
||||
parseJSON obj = Semigroup.Last <$> parseJSON obj
|
||||
{-# INLINE parseJSON #-}
|
||||
instance ToJSON a => ToJSON (Semigroup.Last a) where
|
||||
toJSON (Semigroup.Last x) = toJSON x
|
||||
|
||||
instance FromJSON (DebugConfigF Maybe)
|
||||
instance ToJSON (DebugConfigF Maybe)
|
||||
|
|
Loading…
Reference in New Issue