Skip to content

Instantly share code, notes, and snippets.

@MarcelineVQ
Created January 10, 2020 20:39
Show Gist options
  • Save MarcelineVQ/5891e5417c997bf531fee225433889bc to your computer and use it in GitHub Desktop.
Save MarcelineVQ/5891e5417c997bf531fee225433889bc to your computer and use it in GitHub Desktop.
emptyOnsenM : OnsenM ()
namespace AttribElem {
elem : String -> List Char -> OnsenM a -> OnsenM a
}
namespace Elem {
elem : String -> OnsenM a -> OnsenM a
}
-- ^ above is solely to avoid writing []
-- example :
somepage : OnsenM () -- we don't need [] for the below elem
somepage = elem "page" ['a','b','c'] (elem "row" (elem "col" emptyOnsenM))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment