on master help sign in
Prevent io_bind reducing at REPL
commit1931074ffdfe6203e1774b18ca1ebad4bea56260 authorEdwin Brady <ecb10@st-andrews.ac.uk> dateThu 5 Sep 2013, 13:35 (13 years ago) parent0c138b9
1 file changed+3−1
src/Core/Evaluate.hs+3−1
src/Core/Evaluate.hs+3−1
@@ -798,7 +798,9 @@ lookupDefAcc :: Name -> Bool -> Context ->
798798 [(Def, Accessibility)]
799799lookupDefAcc n mkpublic ctxt
800800 = map mkp $ lookupCtxt n (definitions ctxt)
801− where mkp (d, a, _) = if mkpublic then (d, Public) else (d, a)
801+ -- io_bind a special case for REPL prettiness
802+ where mkp (d, a, _) = if mkpublic && (not (n == UN "io_bind"))
803+ then (d, Public) else (d, a)
802804
803805lookupTotal :: Name -> Context -> [Totality]
804806lookupTotal n ctxt = map mkt $ lookupCtxt n (definitions ctxt)