Skip to content

Commit

Permalink
remove read from the list of derived instances, partially closing yes…
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-McRae-Tracsis committed Sep 13, 2023
1 parent 0d10965 commit 40513d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yesod-core/src/Yesod/Routes/TH/RenderRoute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ mkRouteCons rttypes =
mkRouteCon (ResourceParent name _check pieces children) = do
(cons, decs) <- mkRouteCons children
#if MIN_VERSION_template_haskell(2,12,0)
dec <- DataD [] (mkName name) [] Nothing cons <$> fmap (pure . DerivClause Nothing) (mapM conT [''Show, ''Read, ''Eq])
dec <- DataD [] (mkName name) [] Nothing cons <$> fmap (pure . DerivClause Nothing) (mapM conT [''Show, ''Eq])
#else
dec <- DataD [] (mkName name) [] Nothing cons <$> mapM conT [''Show, ''Read, ''Eq]
dec <- DataD [] (mkName name) [] Nothing cons <$> mapM conT [''Show, ''Eq]
#endif
return ([con], dec : decs)
where
Expand Down Expand Up @@ -175,7 +175,7 @@ mkRenderRouteInstance cxt typ ress = do
clazzes'
else
[]
clazzes' = [''Show, ''Eq, ''Read]
clazzes' = [''Show, ''Eq]

notStrict :: Bang
notStrict = Bang NoSourceUnpackedness NoSourceStrictness
Expand Down

0 comments on commit 40513d1

Please sign in to comment.