packages feed

foundation-edge (empty) → 0.0.1

raw patch · 5 files changed

+108/−0 lines, 5 filesdep +basedep +bytestringdep +foundationsetup-changed

Dependencies added: base, bytestring, foundation

Files

+ Foundation/Compat/ByteString.hs view
@@ -0,0 +1,23 @@+-- |+-- Module      : Foundation.Compat.ByteString+-- License     : BSD-style+-- Maintainer  : Foundation+-- Stability   : experimental+-- Portability : portable+--+-- Module to convert bytestring's ByteString type+{-# LANGUAGE ViewPatterns #-}+module Foundation.Compat.ByteString+    ( fromByteString+    ) where++import Data.ByteString (ByteString)+import Data.ByteString.Internal (toForeignPtr)+import Foundation+import Foundation.Array+import Foundation.Array.Internal++-- | Convert a ByteString to a UArray Word8,+-- without re-allocating or copying anything+fromByteString :: ByteString -> UArray Word8+fromByteString = fromForeignPtr . toForeignPtr
+ LICENSE view
@@ -0,0 +1,27 @@+Copyright (c) 2015-2016 Vincent Hanquez <vincent@snarc.org>++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions+are met:+1. Redistributions of source code must retain the above copyright+   notice, this list of conditions and the following disclaimer.+2. Redistributions in binary form must reproduce the above copyright+   notice, this list of conditions and the following disclaimer in the+   documentation and/or other materials provided with the distribution.+3. Neither the name of the author nor the names of his contributors+   may be used to endorse or promote products derived from this software+   without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS AS IS'' AND+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE+ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF+SUCH DAMAGE.
+ README.md view
@@ -0,0 +1,17 @@+Foundation-edge+===============++This package is useful to convert to and from, types and data structure commonly found in+the haskell ecosystem.++For now, edge support the following packages:++* bytestring (incomplete)++And planning to add support to:++* text+* vector++If you think edge would benefits from other packages, open an issue (or even better a PR) with+suggestion of what to add.
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ foundation-edge.cabal view
@@ -0,0 +1,39 @@+Name:                foundation-edge+Version:             0.0.1+Synopsis:            foundation's edge with the conventional set of packages+Description:+    A set of functions to allow interaction with more conventional+    and well established packages like bytestring, text, vector+    .+    Current support:+    .+    * bytestring+License:             BSD3+License-file:        LICENSE+Copyright:           Vincent Hanquez <vincent@snarc.org>+Author:              Vincent Hanquez <vincent@snarc.org>+Maintainer:          vincent@snarc.org+Category:            foundation+Stability:           experimental+Build-Type:          Simple+Homepage:            https://github.com/haskell-foundation/foundation-edge+Bug-Reports:         https://github.com/haskell-foundation/foundation-edge/issues+Cabal-Version:       >=1.10+tested-with:         GHC == 7.4.2, GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1+extra-source-files:  README.md++source-repository head+  type: git+  location: https://github.com/vincenthz/hs-foundation++Library+  Exposed-modules:    Foundation.Compat.ByteString+  Default-Extensions: NoImplicitPrelude+                      TypeFamilies+                      BangPatterns+                      DeriveDataTypeable+  Build-depends:      base >= 4 && < 5+                    , foundation+                    , bytestring+  ghc-options:        -Wall+  default-language:   Haskell2010