File: Types.hs

package info (click to toggle)
haskell-zstd 0.1.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,992 kB
  • sloc: ansic: 26,812; haskell: 1,085; makefile: 7
file content (28 lines) | stat: -rw-r--r-- 855 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
-- |
-- Module      : Codec.Compression.Zstd.Base.Types
-- Copyright   : (c) 2016-present, Facebook, Inc. All rights reserved.
--
-- License     : BSD3
-- Maintainer  : bryano@fb.com
-- Stability   : experimental
-- Portability : GHC
--
-- Mid-level bindings to the native zstd compression library.  These
-- bindings provide a little more safety and ease of use than the
-- lowest-level FFI bindings.  Unless you have highly specialized
-- needs, you should use the streaming API instead.

module Codec.Compression.Zstd.Base.Types
    (
      CDict(..)
    , DDict(..)
    ) where

import Foreign.ForeignPtr (ForeignPtr)
import qualified Codec.Compression.Zstd.FFI.Types as FFI

-- | A pre-digested compression dictionary.
newtype CDict = CD (ForeignPtr FFI.CDict)

-- | A pre-digested decompression dictionary.
newtype DDict = DD (ForeignPtr FFI.DDict)