Skip to content
Browse files

Renamed paren to parens and thenParen to thenParens

Ignore-this: c06bb9fd2dc84a8108a51fbdbef8def1
Bumped version from 0.5 to 0.6 because of this change in API.

darcs-hash:20101021210654-ae560-37758e3ffda712bd92e564958010efc5983f308d.gz
  • Loading branch information...
1 parent cb44ef6 commit f4f37f523c6ba8ce0eb34682c4ab258a5193f709 @basvandijk committed Oct 21, 2010
Showing with 9 additions and 9 deletions.
  1. +8 −8 Data/String/Combinators.hs
  2. +1 −1 string-combinators.cabal
View
16 Data/String/Combinators.hs
@@ -24,8 +24,8 @@ module Data.String.Combinators
-- * Wrapping in delimiters
, between
- , paren
- , thenParen
+ , parens
+ , thenParens
, brackets
, braces
, angleBrackets
@@ -159,8 +159,8 @@ between open close = \x -> open <> x <> close
-- | Wrap a string-like in @(...)@.
-paren (Monoid s, IsString s) s s
-paren = between "(" ")"
+parens (Monoid s, IsString s) s s
+parens = between "(" ")"
-- | Wrap a string-like in @[...]@.
brackets (Monoid s, IsString s) s s
@@ -187,11 +187,11 @@ doubleQuotes = between "\"" "\""
This function is supposed to be used infix as in:
-@(precedence >= 10) \`thenParen\` (\"fun\" \<+\> \"arg\")@
+@(precedence >= 10) \`thenParens\` (\"fun\" \<+\> \"arg\")@
-}
-thenParen (Monoid s, IsString s) Bool s s
-thenParen True = paren
-thenParen False = id
+thenParens (Monoid s, IsString s) Bool s s
+thenParens True = parens
+thenParens False = id
--------------------------------------------------------------------------------
View
2 string-combinators.cabal
@@ -1,5 +1,5 @@
Name: string-combinators
-Version: 0.5
+Version: 0.6
Synopsis: Polymorphic functions to build and combine stringlike values
Description: @string-combinators@ provides handy polymorphic functions
to build and combine string-like values.

0 comments on commit f4f37f5

Please sign in to comment.
Something went wrong with that request. Please try again.