Skip to content

Commit de730de

Browse files
committed
Bump to descriptive 0.3.0
1 parent 52ff62a commit de730de

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/Main.hs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,11 @@ data ParseType = Decl | Stmt
6060
options :: Consumer [Text] (Option ()) (Action,ParseType,[Extension])
6161
options = (,,) <$> action <*> typ <*> exts
6262
where action =
63-
sumConstant Parse "parse" "Parse and spit out spans" <|>
64-
sumConstant Check "check" "Just check the syntax"
63+
constant "parse" "Parse and spit out spans" Parse <|>
64+
constant "check" "Just check the syntax" Check
6565
typ =
66-
sumConstant Decl "decl" "Parse a declaration" <|>
67-
sumConstant Stmt "stmt" "Parse a statement"
68-
sumConstant sum' text desc =
69-
fmap (const sum')
70-
(constant text desc)
66+
constant "decl" "Parse a declaration" Decl <|>
67+
constant "stmt" "Parse a statement" Stmt
7168
exts =
7269
fmap getExtensions
7370
(many (prefix "X" "Language extension"))

structured-haskell-mode.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: structured-haskell-mode
2-
version: 1.0.9
2+
version: 1.0.10
33
synopsis: Structured editing Emacs mode for Haskell
44
description: Structured editing Emacs mode for Haskell.
55
homepage: https://github.com/chrisdone/structured-haskell-mode
@@ -44,4 +44,4 @@ executable structured-haskell-mode
4444
build-depends: base >= 4 && < 5
4545
, haskell-src-exts == 1.15.*
4646
, text
47-
, descriptive == 0.2.*
47+
, descriptive == 0.3.*

0 commit comments

Comments
 (0)