ixset-typed-binary-instance (empty) → 0.1.0.0
raw patch · 5 files changed
+69/−0 lines, 5 filesdep +basedep +binarydep +ixset-typed
Dependencies added: base, binary, ixset-typed
Files
- ChangeLog.md +3/−0
- LICENSE +19/−0
- README.md +1/−0
- ixset-typed-binary-instance.cabal +37/−0
- src/Data/IxSet/Typed/Binary.hs +9/−0
+ ChangeLog.md view
@@ -0,0 +1,3 @@+# Changelog for ixset-binary-instance++## Unreleased changes
+ LICENSE view
@@ -0,0 +1,19 @@+Copyright (c) 2020 Daniel Firth++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.
+ README.md view
@@ -0,0 +1,1 @@+# ixset-binary-instance
+ ixset-typed-binary-instance.cabal view
@@ -0,0 +1,37 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.34.2.+--+-- see: https://github.com/sol/hpack++name: ixset-typed-binary-instance+version: 0.1.0.0+synopsis: Binary instance for ixset-typed.+description: Please see the README on GitHub at <https://gitlab.com/homotopic-tech/ixset-typed-binary-instance/README.md>+category: Data Structures+author: Daniel Firth+maintainer: dan,firth@homotopic.tech+copyright: 2020 Daniel Firth+license: MIT+license-file: LICENSE+build-type: Simple+extra-source-files:+ README.md+ ChangeLog.md++source-repository head+ type: git+ location: https://gitlab.com/homotopic-tech/ixset-typed-binary-instance++library+ exposed-modules:+ Data.IxSet.Typed.Binary+ other-modules:+ Paths_ixset_typed_binary_instance+ hs-source-dirs:+ src+ build-depends:+ base >=4.7 && <5+ , binary+ , ixset-typed+ default-language: Haskell2010
+ src/Data/IxSet/Typed/Binary.hs view
@@ -0,0 +1,9 @@+module Data.IxSet.Typed.Binary where++import Data.Binary+import Data.IxSet.Typed++instance (Indexable ixs x, Binary x) => Binary (IxSet ixs x) where+ put = put . toList+ get = fmap fromList get+