Interpolation 0.2.1 → 0.2.2
raw patch · 2 files changed
+7/−7 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- Data/String/Interpolation.hs +6/−6
- Interpolation.cabal +1/−1
Data/String/Interpolation.hs view
@@ -19,7 +19,7 @@ -- is not able to properly deduce associtivity of infix operators, -- so use lots and lots of parenthesis. ----- Repetitive patterns can be made by # symbol: +-- Repetitive patterns can be made with # symbol: -- -- @ -- \#\<var\> in \<list\>: \<interpolated string\> (|\<interpolated string\>)\#@@ -40,16 +40,16 @@ -- @ -- plotVecs :: [(String,[Double])] -> String -- plotVecs vs = --- [$str| ## Plot multiple vectors--- plot #(n,_) in vs:'-' with lines lw 5 title $n$ |, #--- #d in map snd vs:$singleVec d$$endline$e$endline$# |]+-- [$str| \#\# Plot multiple vectors+-- plot \#(n,_) in vs:'-' with lines lw 5 title $n$ |, \#+-- \#d in map snd vs:$singleVec d$$endline$e$endline$\# |] -- where--- singleVec n = [$str|#(e,i) in zip n [1..]: $:i$ $:e$|$endline$#|]+-- singleVec n = [$str|\#(e,i) in zip n [1..]: $:i$ $:e$|$endline$\#|] -- @ -- -- @ -- *Gnuplotter> plotVecs [("A",[1..5]),("B",[2..6])]--- # Plot multiple vectors+-- \# Plot multiple vectors -- plot '-' with lines lw 5 title A , '-' with lines lw 5 title B -- 1 1.0 -- 2 2.0
Interpolation.cabal view
@@ -1,5 +1,5 @@ Name: Interpolation-Version: 0.2.1+Version: 0.2.2 Description: This package adds quasiquoter for multiline strings, interpolation and simple templating. It can handle repetition templates which makes it