Skip to content

Commit 2037be9

Browse files
authored
Generate wildcard type parameters (#200)
* Generate wildcard type parameters * add changelog item
1 parent 732314f commit 2037be9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

effectful-th/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# effectful-th-1.0.0.2 (2024-??-??)
22
* Drop support for GHC 8.8.
3+
* `makeEffect` no longer generates `Wunused-type-patterns` warning ([#200](https://github.com/haskell-effectful/effectful/pull/200)).
34

45
# effectful-th-1.0.0.1 (2023-01-13)
56
* Depend on `effectful-core`, not `effectful`.

effectful-th/src/Effectful/TH.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ makeEffectImpl makeSig effName = do
7676
checkRequiredExtensions
7777
info <- reifyDatatype effName
7878
dispatch <- do
79-
e <- getEff (ConT $ datatypeName info) (datatypeInstTypes info)
79+
e <- getEff (ConT $ datatypeName info) (const WildCardT <$> datatypeInstTypes info)
8080
let dispatchE = ConT ''DispatchOf `AppT` e
8181
dynamic = PromotedT 'Dynamic
8282
pure . TySynInstD $ TySynEqn Nothing dispatchE dynamic

0 commit comments

Comments
 (0)