hwsl2-reducers (empty) → 0.1.0.0
raw patch · 4 files changed
+69/−0 lines, 4 filesdep +basedep +bytestringdep +hwsl2setup-changed
Dependencies added: base, bytestring, hwsl2, reducers, semigroups
Files
- LICENSE +22/−0
- Setup.hs +2/−0
- hwsl2-reducers.cabal +29/−0
- src/Data/Hash/SL2/Reducer.hs +16/−0
+ LICENSE view
@@ -0,0 +1,22 @@+The MIT License (MIT)++Copyright (c) 2015 Sam Rijs++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.+
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ hwsl2-reducers.cabal view
@@ -0,0 +1,29 @@+-- Initial hwsl2-reducers.cabal generated by cabal init. For further +-- documentation, see http://haskell.org/cabal/users-guide/++name: hwsl2-reducers+version: 0.1.0.0+synopsis: Semigroup and Reducer instances for Data.Hash.SL2+-- description: +homepage: https://github.com/srijs/hwsl2-reducers+license: MIT+license-file: LICENSE+author: Sam Rijs+maintainer: srijs@airpost.net+-- copyright: +category: Data+build-type: Simple+-- extra-source-files: +cabal-version: >=1.10++library+ exposed-modules: Data.Hash.SL2.Reducer+ -- other-modules: + -- other-extensions: + build-depends: base >=4.6 && <5.0,+ bytestring >=0.10,+ hwsl2 >=0.3,+ semigroups >=0.16,+ reducers >=3.10+ hs-source-dirs: src+ default-language: Haskell2010
+ src/Data/Hash/SL2/Reducer.hs view
@@ -0,0 +1,16 @@+{-# LANGUAGE MultiParamTypeClasses #-}++module Data.Hash.SL2.Reducer where++import Data.ByteString (ByteString)+import Data.Hash.SL2+import Data.Semigroup+import Data.Semigroup.Reducer++instance Semigroup Hash where+ (<>) = mappend++instance Reducer ByteString Hash where+ unit = mempty+ snoc = append+ cons = prepend