Skip to content

Commit

Permalink
Anothet non-newtype class
Browse files Browse the repository at this point in the history
  • Loading branch information
augustss committed Feb 4, 2025
1 parent 82c7219 commit 0d7e940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MicroHs/Deriving.hs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ deriveStrat mctx newt lhs cs strat cls =
_ -> cannotDerive lhs cls
where useNewt d = unIdent (getAppCon d) `notElem`
["Data.Data.Data", "Data.Typeable.Typeable", "GHC.Generics.Generic",
"Text.Read.Internal.Read", "Text.Show.Show"]
"Language.Haskell.TH.Syntax.Lift", "Text.Read.Internal.Read", "Text.Show.Show"]

type DeriverT = LHS -> [Constr] -> EConstraint -> T [EDef] -- Bool indicates a newtype
type Deriver = Maybe EConstraint -> DeriverT
Expand Down

0 comments on commit 0d7e940

Please sign in to comment.