Skip to content

Commit

Permalink
Add .ghci and remove some FIXMEs
Browse files Browse the repository at this point in the history
  • Loading branch information
fizruk committed Nov 4, 2021
1 parent bb051f4 commit 1113493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions .ghci
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:set -XOverloadedStrings
5 changes: 1 addition & 4 deletions rzk/src/Rzk/Free/Syntax/FreeScoped/ScopedUnification.hs
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ class Bifunctor t => Reducible t where
swap (InR y) = InL y

instance (Reducible f, Reducible g) => Reducible (f :+: g) where
-- FIXME: recursively reduce until we cannot reduce anymore?
-- or maybe ask for step-by-step reduction to improve
reduceInL
= transFreeScopedT assoc'
. reduceInL
Expand Down Expand Up @@ -363,7 +361,7 @@ substituteGuesses defaultBoundVar = fmap Substs . \case
guess
let arity = length args
return [(v, MetaAbs arity $ Bound.abstractEither (\case {UFreeVar i -> Left i; UMetaVar v' -> Right v'}) (FreeScoped (InL guess')))]
(_, _guesses) -> pure [] -- FIXME: go recursively?
(_, _guesses) -> pure []

-- TODO: allow inner meta variables to access all bound variables by default?
goScoped
Expand Down Expand Up @@ -581,7 +579,6 @@ tryFlexRigid (t1 :~: t2) =

generateWithBoundHead i = pure (PureScoped (Bound.B i))

-- FIXME: ignore PureScoped (UFreeVar (Bound.B _)) ?
generateWithHead (PureScoped (UFreeVar (Bound.B _))) _ = mzero
generateWithHead h n = join <$> traverse go h
where
Expand Down

0 comments on commit 1113493

Please sign in to comment.