summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreliaslfox <>2017-08-21 20:39:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2017-08-21 20:39:00 (GMT)
commit50018f80cbc035cac0ec9abd08700d00e0cca9ec (patch)
treec948dcd3b20fb53a8aca503c6fa167f30bb66a99
parent9729ce842d5f31d7431f48012a777218f79942a5 (diff)
version 0.0.10.10.0.10.1
-rw-r--r--README.md2
-rw-r--r--language-elm.cabal2
-rw-r--r--src/Elm/Decleration.hs2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index a66f31a..746fc00 100644
--- a/README.md
+++ b/README.md
@@ -18,7 +18,7 @@ import Elm.Type
Declare a program type
```haskell
-program :: Program
+program : Program
program =
Program
"Tuple"
diff --git a/language-elm.cabal b/language-elm.cabal
index 4051706..0593a62 100644
--- a/language-elm.cabal
+++ b/language-elm.cabal
@@ -1,5 +1,5 @@
name: language-elm
-version: 0.0.10.0
+version: 0.0.10.1
synopsis: Generate elm code
description: Generate elm code from an ast
homepage: https://github.com/eliaslfox/language-elm#readme
diff --git a/src/Elm/Decleration.hs b/src/Elm/Decleration.hs
index 0c9b369..f12f3e0 100644
--- a/src/Elm/Decleration.hs
+++ b/src/Elm/Decleration.hs
@@ -20,7 +20,7 @@ toDocD :: Dec -> Doc
toDocD dec =
case dec of
Dec str typeDec args body ->
- text str <+> text "::" <+> toDocT typeDec $+$
+ text str <+> text ":" <+> toDocT typeDec $+$
hang (text str <+> (hsep . map toDoc $ args) <+> text "=") 4 (toDoc body)
DecTypeAlias str typeParams t->