Skip to content

Commit

Permalink
Add test for ocharles#171
Browse files Browse the repository at this point in the history
  • Loading branch information
ryndubei committed Jul 17, 2024
1 parent 5f23719 commit 6138c5e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
Empty file added test/Spec/DataFamilies.stdout
Empty file.
5 changes: 5 additions & 0 deletions test/Spec/DataFamilies.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
roots = [ ]

type-class-roots = true

unused-types = true
10 changes: 10 additions & 0 deletions test/Spec/DataFamilies/DataFamilies.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{-# LANGUAGE TypeFamilies #-}
module Spec.DataFamilies.DataFamilies where

data family DF a

-- both instances should be implicit roots just as with type family instances

data instance DF Int = A { getA :: Int }

newtype instance DF Double = B { getB :: Int }
1 change: 1 addition & 0 deletions weeder.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ test-suite weeder-test
Spec.ConfigInstanceModules.Module1
Spec.ConfigInstanceModules.Module2
Spec.ConfigInstanceModules.Module3
Spec.DataFamilies.DataFamilies
Spec.DeriveGeneric.DeriveGeneric
Spec.InstanceRootConstraint.InstanceRootConstraint
Spec.InstanceTypeclass.InstanceTypeclass
Expand Down

0 comments on commit 6138c5e

Please sign in to comment.