Rlang-QQ 0.1.0.0 → 0.1.0.1
raw patch · 3 files changed
+8/−1 lines, 3 files
Files
- Rlang-QQ.cabal +1/−1
- examples/test3.hs +6/−0
- examples/test3.ref +1/−0
Rlang-QQ.cabal view
@@ -1,5 +1,5 @@ name: Rlang-QQ-version: 0.1.0.0+version: 0.1.0.1 cabal-version: >=1.8 build-type: Simple license: BSD3
examples/test3.hs view
@@ -1,3 +1,4 @@+{-# LANGUAGE ViewPatterns #-} -- for pun {-# LANGUAGE DataKinds #-} {-# LANGUAGE TemplateHaskell, QuasiQuotes #-} module Main where@@ -14,3 +15,8 @@ print(hs_inRec) hs_inRec <- within(hs_inRec, y <- y + z) |] print ((o .!. (Label :: Label "inRec")) .!. y)+++ -- alternative to the above (shadows the label y)+ let [pun| inRec{ y } |] = o+ print y
examples/test3.ref view
@@ -1,1 +1,2 @@ [4.0,4.0,4.0]+[4.0,4.0,4.0]