packages feed

network-hans-0.2: network-hans.cabal

name:           network-hans
version:        0.2
cabal-version:  >= 1.8
license:        BSD3
license-file:   LICENSE
author:         Galois Inc.
maintainer:     halvm-devel@community.galois.com
category:       Networking
synopsis:       HaNS to Network shims for easier HaNS integration
build-type:     Simple
description:
  HaNS is a lightweight, pure Haskell network stack that can be used for Haskell
  networking in the context of the HaLVM, or with a Linux tap device. It's very
  cool, but can be hard to integrate into existing systems. This library
  attempts to mitigate some of the translation cost by mimicking some of the
  behavior of the standard Haskell network library.

source-repository head
        type:           git
        location:       git://github.com/GaloisInc/network-hans.git

library
        hs-source-dirs:                 src
        extensions:                     DeriveDataTypeable,
                                        ForeignFunctionInterface,
                                        GeneralizedNewtypeDeriving,
                                        MultiWayIf,
                                        RecordWildCards,
                                        ScopedTypeVariables
        exposed-modules:
                                        Network.BSD,
                                        Network.Socket,
                                        Network.Socket.ByteString,
                                        Network.Socket.ByteString.Lazy,
                                        Network.Socket.Internal

        other-modules:
                                        Hans.Socket.Handle,
                                        Network.BSD.ServiceDB

        build-depends:
                                        base       >= 4.0 && < 5.0,
                                        bytestring >= 0.9 && < 0.12,
                                        hans       >= 2.4 && < 2.8,
                                        parsec     >= 3.0 && < 4.0