More formatting tweaks.

This commit is contained in:
Duncan McGreggor 2015-05-21 19:14:39 -05:00
parent 1c9fe229cb
commit 8fbb180c7c

View file

@ -3,13 +3,13 @@
;; Provide the state monad in terms of the state transformer
(''state `(transformer 'state 'identity))
(_
`(list_to_atom (lists:flatten (list "calrissian-"
(atom_to_list ,name)
`(list_to_atom (lists:flatten `("calrissian-"
,(atom_to_list ,name)
"-monad"))))))
(defmacro transformer (name inner-monad)
`(tuple (list_to_atom (lists:flatten (list "calrissian-"
(atom_to_list ,name)
`(tuple (list_to_atom (lists:flatten `("calrissian-"
,(atom_to_list ,name)
"-transformer")))
(monad ,inner-monad)))
@ -31,7 +31,7 @@
`(call ,monad 'fail ,expr))
(defmacro sequence (monad list)
`(: lists foldr
`(lists:foldr
(lambda (m acc) (mcons ,monad m acc))
(return ,monad [])
,list))