Skip to content

Commit

Permalink
Fix small examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Walker committed Dec 30, 2024
1 parent 20e05d7 commit 50946f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/small-coalton-programs/src/brainfold.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
#:coalton
#:coalton-prelude)
(:local-nicknames
(#:vec #:coalton-library/vector)
(#:vec #:coalton-library/collections/mutable/vector)
(#:iter #:coalton-library/iterator)
(#:cell #:coalton-library/cell)
(#:char #:coalton-library/char)
(#:str #:coalton-library/string)
(#:list #:coalton-library/list)
(#:list #:coalton-library/collections/immutable/list)
(#:arith #:coalton-library/math)
(#:state #:coalton-library/monad/state)
(#:file #:coalton-library/file))
Expand Down
3 changes: 2 additions & 1 deletion examples/small-coalton-programs/src/freecalc.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#:describe
#:disassemble)
(:use #:coalton #:coalton-prelude)
(:shadow #:add)
(:local-nicknames
(#:vector #:coalton-library/vector)
(#:st #:coalton-library/monad/state)
Expand Down Expand Up @@ -78,7 +79,7 @@ we map over."
((AddE x y next) (pure (next (+ x y))))
((SubE x y next) (pure (next (- x y))))
((InputE next)
(map (compose next (fn (vec) (defaulting-unwrap (vector:pop! vec))))
(map (compose next (fn (vec) (defaulting-unwrap (pop! vec))))
st:get))))))


Expand Down

0 comments on commit 50946f3

Please sign in to comment.