Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-abrar committed May 9, 2019
1 parent 43df121 commit cd738fa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Data/Aeson/GADT/TH.hs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ import Data.Aeson
import Data.List
import Data.Maybe
import qualified Data.Set as Set
import Data.Set (Set)
import Data.Some (Some (..))
import Language.Haskell.TH
import Language.Haskell.TH hiding (cxt)

newtype JSONGADTOptions = JSONGADTOptions
{ gadtConstructorModifier :: String -> String }
Expand Down Expand Up @@ -181,7 +180,7 @@ substVarsWith
substVarsWith topVars resultType argType = subst Set.empty argType
where
topVars' = reverse topVars
AppT resultType' indexType = resultType
AppT resultType' _indexType = resultType
subst bs = \case
ForallT bndrs cxt t ->
let bs' = Set.union bs (Set.fromList (map tyVarBndrName bndrs))
Expand Down

0 comments on commit cd738fa

Please sign in to comment.