Skip to content

Commit

Permalink
Restyled by fourmolu (#423)
Browse files Browse the repository at this point in the history
Co-authored-by: Restyled.io <commits@restyled.io>
  • Loading branch information
github-actions[bot] and restyled-commits authored Dec 25, 2024
1 parent 3b0d67f commit 61a4bd9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Disco/Compile.hs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,6 @@ compilePrim _ PrimUntil = return $ CConst OUntil
compilePrim _ PrimHolds = return $ CConst OHolds
compilePrim _ PrimLookupSeq = return $ CConst OLookupSeq
compilePrim _ PrimExtendSeq = return $ CConst OExtendSeq

compilePrim ty PrimMin = desugaredPrimErr PrimMin ty
compilePrim ty PrimMax = desugaredPrimErr PrimMax ty

Expand Down
2 changes: 1 addition & 1 deletion src/Disco/Desugar.hs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ import Disco.Syntax.Prims
import Disco.Typecheck (containerTy)
import Disco.Types
import Polysemy (Member, Sem, run)
import Prelude hiding (unzip)
import Unbound.Generics.LocallyNameless (
Bind,
Name,
Expand All @@ -56,6 +55,7 @@ import Unbound.Generics.LocallyNameless (
unrebind,
)
import Unbound.Generics.LocallyNameless.Unsafe (unsafeUnbind)
import Prelude hiding (unzip)

------------------------------------------------------------
-- Running desugaring computations
Expand Down
2 changes: 1 addition & 1 deletion src/Disco/Effects/LFresh.hs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ runLFresh' =
let s = name2String nm
used <- ask
let ok n = S.notMember (AnyName n) used
pureT $ iterUntil (+1) (gate ok . makeName s) 0
pureT $ iterUntil (+ 1) (gate ok . makeName s) 0
Avoid names m -> do
m' <- runT m
raise (subsume (runLFresh' (local (S.union (S.fromList names)) m')))
Expand Down

0 comments on commit 61a4bd9

Please sign in to comment.