packages feed

mason 0.2 → 0.2.1

raw patch · 4 files changed

+99/−3 lines, 4 files

Files

CHANGELOG.md view
@@ -1,5 +1,7 @@ # Revision history for mason +* Added `Mason.Builder.Compat`+ ## 0.2  * Added `doubleFixed`, `doubleSI` and `doubleExp`
mason.cabal view
@@ -1,7 +1,7 @@ cabal-version:       2.4  name:                mason-version:             0.2+version:             0.2.1 synopsis:            Fast and extensible bytestring builder description:   This package provides efficient implementation of bytestring builders.@@ -25,6 +25,7 @@     Mason.Builder     Mason.Builder.Internal     Mason.Builder.Dynamic+    Mason.Builder.Compat    c-sources: cbits/dtoa.c   ghc-options: -Wall -O2
src/Mason/Builder.hs view
@@ -4,8 +4,8 @@ {-# LANGUAGE LambdaCase #-} ---------------------------------------------------------------------------- -- |--- Module      :  Mason.Builders--- Copyright   :  (c) Fumiaki Kinoshita 2019+-- Module      :  Mason.Builder+-- Copyright   :  (c) Fumiaki Kinoshita 2019- -- License     :  BSD3 -- -- Maintainer  :  Fumiaki Kinoshita <fumiexcel@gmail.com>
+ src/Mason/Builder/Compat.hs view
@@ -0,0 +1,93 @@+----------------------------------------------------------------------------+-- |+-- Module      :  Mason.Builder.Compat+-- Copyright   :  (c) Fumiaki Kinoshita 2020-+-- License     :  BSD3+--+-- Maintainer  :  Fumiaki Kinoshita <fumiexcel@gmail.com>+--+-- API which is almost compatible with Data.ByteString.Builder+----------------------------------------------------------------------------+module Mason.Builder.Compat+  ( Builder+  -- * Runners+  , D.toStrictByteString+  , D.toLazyByteString+  , D.hPutBuilderLen+  , D.hPutBuilder+  , D.sendBuilder+  -- * Primitives+  , flush+  -- * Bytes+  , byteString+  , lazyByteString+  , shortByteString+  -- * Text+  , textUtf8+  , encodeUtf8Builder+  , encodeUtf8BuilderEscaped+  , char7+  , string7+  , char8+  , string8+  , charUtf8+  , stringUtf8+  -- * Primitive+  , storable+  , int8+  , word8+  , int16LE+  , int32LE+  , int64LE+  , word16LE+  , word32LE+  , word64LE+  , floatLE+  , doubleLE+  , int16BE+  , int32BE+  , int64BE+  , word16BE+  , word32BE+  , word64BE+  , floatBE+  , doubleBE+  -- * Numeral+  , floatDec+  , doubleDec+  , doubleSI+  , doubleExp+  , doubleFixed+  , word8Dec+  , word16Dec+  , word32Dec+  , word64Dec+  , wordDec+  , int8Dec+  , int16Dec+  , int32Dec+  , int64Dec+  , intDec+  , integerDec+  , word8Hex+  , word16Hex+  , word32Hex+  , word64Hex+  , wordHex+  , int8HexFixed+  , int16HexFixed+  , int32HexFixed+  , int64HexFixed+  , word8HexFixed+  , word16HexFixed+  , word32HexFixed+  , word64HexFixed+  , floatHexFixed+  , doubleHexFixed+  , byteStringHex+  , lazyByteStringHex+  ) where+import Mason.Builder hiding (Builder)+import Mason.Builder.Dynamic as D++type Builder = D.DynBuilder