unpacked-maybe-0.1.0.0: unpacked-maybe.cabal
--------------------------------------------------------------------------------
name: unpacked-maybe
version: 0.1.0.0
synopsis: An unpacked maybe data type
description:
This module is intended to be a drop-in replacement for the Maybe type provided by base. To shave off pointer chasing, it uses '-XUnboxedSums' to represent the Maybe type as two machine words that are contiguous in memory, without loss of expressiveness that Maybe provides.
.
This library provides pattern synonyms Just and Nothing that allow users to pattern match on an Unpacked Maybe in the familiar way.
.
Functions are also provided for converting an Unpacked Maybe to the base library's Maybe, and vice versa.
.
This library is in alpha, and the internals are likely to change.
homepage: https://github.com/mckeankylej/unpacked-maybe#readme
license: BSD3
license-file: LICENSE
author: Kyle McKean, chessai
maintainer: mckean.kylej@gmail.com
copyright:
Copyright © 2018 Kyle McKean
Copyright © 2018chessai
category: Development
build-type: Simple
cabal-version: >=1.10
--------------------------------------------------------------------------------
library
hs-source-dirs: src
exposed-modules: Data.Maybe.Unpacked
build-depends: base >= 4.10 && < 5
, ghc-prim
default-language: Haskell2010
-------------------------------------------------------------------------------
test-suite unpacked-maybe-test
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends: base
, unpacked-maybe
, QuickCheck
, quickcheck-classes
ghc-options: -threaded -rtsopts -with-rtsopts=-N -O2
default-language: Haskell2010
-------------------------------------------------------------------------------
source-repository head
type: git
location: https://github.com/mckeankylej/unpacked-maybe
--------------------------------------------------------------------------------