Skip to content

Instantly share code, notes, and snippets.

@Rizary
Last active July 3, 2019 15:15
Show Gist options
  • Save Rizary/08989181834f71ee2ce3188df57edb9e to your computer and use it in GitHub Desktop.
Save Rizary/08989181834f71ee2ce3188df57edb9e to your computer and use it in GitHub Desktop.
Simple haskell element
el :: Text -> m a -> m a
[1] [2] [3]
el "p" $ text "Welcome, this is Home!"
< p > Welcome, This is Home! </p>
elAttr :: Text -> Map Text Text -> m a -> m a
[A] [B] [C] [D]
elAttr "h2" ( "class" =: "main-header" ) $ text "Welcome"
< "h2" class = "main-header" > Welcome </h2>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment