packages feed

interpolatedstring-perl6 0.2 → 0.3

raw patch · 2 files changed

+5/−3 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

- Text.InterpolatedString.Perl6: class (Show a) => ShowQ a
+ Text.InterpolatedString.Perl6: class ShowQ a

Files

interpolatedstring-perl6.cabal view
@@ -1,5 +1,5 @@ Name:          interpolatedstring-perl6-Version:       0.2+Version:       0.3 License:       BSD3 License-file:  LICENSE Category:      Data
src/Text/InterpolatedString/Perl6.hs view
@@ -64,7 +64,7 @@ import Language.Haskell.Meta.Parse
 import Data.Char (isAlpha, isAlphaNum)
 
-class Show a => ShowQ a where
+class ShowQ a where
     showQ :: a -> String
 
 instance ShowQ Char where
@@ -119,15 +119,17 @@         Left s  -> TH.report True s >> [| "" |]
         Right e ->  return e
 
--- | QuasiQuoter for interpolatin Haskell values into a string literal. The pattern portion is undefined.
+-- | QuasiQuoter for interpolating '$var' and '{expr}' into a string literal. The pattern portion is undefined.
 qq :: QuasiQuoter
 qq = QuasiQuoter (makeExpr . parseQQ [] . filter (/= '\r'))
     $ error "Cannot use qq as a pattern"
 
+-- | QuasiQuoter for interpolating '{expr}' into a string literal. The pattern portion is undefined.
 qc :: QuasiQuoter
 qc = QuasiQuoter (makeExpr . parseQC [] . filter (/= '\r'))
     $ error "Cannot use qc as a pattern"
 
+-- | QuasiQuoter for a non-interpolating string literal. The pattern portion is undefined.
 q :: QuasiQuoter
 q = QuasiQuoter ((\a -> [|a|]) . filter (/= '\r'))
     $ error "Cannot use q as a pattern"