Skip to content

Commit

Permalink
Try quick 8.6.5 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
halogenandtoast committed Oct 24, 2023
1 parent 2356923 commit de50196
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Database/Esqueleto/Record.hs
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,11 @@ toMaybeTDec RecordInfo {..} = do
let binders = Nothing
lhs = (ConT ''ToMaybeT) `AppT` (ConT sqlName)
rhs = ConT sqlMaybeName
#if MIN_VERSION_template_haskell(2,15,0)
pure $ TySynInstD $ TySynEqn binders lhs rhs
#else
pure $ TySynInstD $ TySynEqn lhs rhs

Check failure on line 763 in src/Database/Esqueleto/Record.hs

View workflow job for this annotation

GitHub Actions / build (3.8.1.0, 8.6.5)

• Couldn't match type ‘TySynEqn -> Dec’ with ‘Dec’

Check failure on line 763 in src/Database/Esqueleto/Record.hs

View workflow job for this annotation

GitHub Actions / build (3.8.1.0, 8.6.5)

• Couldn't match expected type ‘Name’ with actual type ‘TySynEqn’

Check failure on line 763 in src/Database/Esqueleto/Record.hs

View workflow job for this annotation

GitHub Actions / build (3.8.1.0, 8.6.5)

• Couldn't match expected type ‘[Type]’ with actual type ‘Type’
#endif

-- | Generates a `toMaybe value = ...` declaration for the given record.
toMaybeDec :: RecordInfo -> Q Dec
Expand Down

0 comments on commit de50196

Please sign in to comment.