packages feed

disk-bytes-0.1.0.0: disk-bytes.cabal

cabal-version:      2.4
name:               disk-bytes
version:            0.1.0.0
synopsis:           On-disk storage, but referentially transparent
description:
    This package provides a data type 'DiskBytes' which represents a sequence of bytes that is stored on disk — but in a referentially transparent manner.
category:           Memory

license:            BSD-3-Clause
license-file:       LICENSE
copyright:          Copyright (c) 2022 Heinrich Apfelmus
author:             Heinrich Apfelmus
maintainer:         apfelmus@quantentunnel.de
homepage:           https://github.com/HeinrichApfelmus/disk-bytes
bug-reports:        https://github.com/HeinrichApfelmus/disk-bytes/issues

extra-source-files:
    CHANGELOG.md
    README.md

library
    exposed-modules:
        System.Mem.Disk
    other-modules:
        System.Mem.Disk.Bytes
        System.Mem.Disk.BytesPlain
        System.Mem.Disk.DiskApi
        System.Mem.Disk.Memory
        System.Mem.Disk.Sqlite
    default-extensions:
        NamedFieldPuns
    other-extensions:
        MagicHash
        OverloadedStrings
        UnboxedTuples
    build-depends:
          base >= 4.14.3.0 && < 4.18
        , bytestring >= 0.10.12.0 && < 0.12 
        , containers ^>= 0.6.5.1
        , directory ^>= 1.3.6.0
        , direct-sqlite ^>=2.3.27
        , stm ^>= 2.5.0.1
        , text >= 1.2.4.1 && < 2.1
    hs-source-dirs:   src
    default-language: Haskell2010

benchmark memory
    type:             exitcode-stdio-1.0
    main-is:          bench-memory.hs
    hs-source-dirs:   src-bench
    build-depends:
          base
        , disk-bytes
        , bytestring
        , text
    ghc-options:
        "-with-rtsopts=-p -s -h -i0.05"
    default-language: Haskell2010