Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Unbound/Generics/LocallyNameless/Alpha.hs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ isNullDisjointSet _ = False
--
-- Minimal instance is entirely empty, provided that your type is an instance of
-- 'Generic'.
class (Show a) => Alpha a where
class Alpha a where
-- | See 'Unbound.Generics.LocallyNameless.Operations.aeq'.
aeq' :: AlphaCtx -> a -> a -> Bool
default aeq' :: (Generic a, GAlpha (Rep a)) => AlphaCtx -> a -> a -> Bool
Expand Down
5 changes: 3 additions & 2 deletions src/Unbound/Generics/LocallyNameless/Bind.hs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ instance (Alpha p, Alpha t) => Alpha (Bind p t) where
open ctx b (B p t) =
B (open (patternCtx ctx) b p) (open (incrLevelCtx ctx) b t)

nthPatFind b = error $ "Binding " ++ show b ++ " used as a pattern"
namePatFind b = error $ "Binding " ++ show b ++ " used as a pattern"
nthPatFind _ = error "Binding used as a pattern"

namePatFind _ = error "Binding used as a pattern"

swaps' ctx perm (B p t) =
B (swaps' (patternCtx ctx) perm p)
Expand Down
2 changes: 1 addition & 1 deletion src/Unbound/Generics/LocallyNameless/Ignore.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ instance (Show t) => Show (Ignore t) where
. showsPrec prec t
. showString "->")

instance (Show t) => Alpha (Ignore t) where
instance Alpha (Ignore t) where
aeq' _ _ _ = True
fvAny' _ _ = pure
isPat _ = inconsistentDisjointSet
Expand Down