Copyright | (c) Dong Han 2017-2018 |
---|---|
License | BSD |
Maintainer | winterland1989@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides functions for writing vector literals using QuasiQuote
similar to Z.Data.Array.QQ module.
> :set -XQuasiQuotes > :t [vecASCII|asdfg|] [vecASCII|asdfg|] :: Z.Data.Vector.Base.PrimVector GHC.Word.Word8 > [vecASCII|asdfg|] [97,115,100,102,103] > :t [vecI16|1,2,3,4,5|] [vecI16|1,2,3,4,5|] :: Z.Data.Vector.Base.PrimVector GHC.Int.Int16 > [vecI16|1,2,3,4,5|] [1,2,3,4,5]