packages feed

hs-swisstable-hashtables-class (empty) → 0.1.0.0

raw patch · 7 files changed

+116/−0 lines, 7 filesdep +basedep +hashtablesdep +hs-swisstable-hashtables-classsetup-changed

Dependencies added: base, hashtables, hs-swisstable-hashtables-class, swisstable

Files

+ ChangeLog.md view
@@ -0,0 +1,3 @@+# Changelog for hs-swisstable-hashtables-class++## Unreleased changes
+ LICENSE view
@@ -0,0 +1,30 @@+Copyright Author name here (c) 2021++All rights reserved.++Redistribution and use in source and binary forms, with or without+modification, are permitted provided that the following conditions are met:++    * Redistributions of source code must retain the above copyright+      notice, this list of conditions and the following disclaimer.++    * 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.++    * Neither the name of Author name here nor the names of other+      contributors may be used to endorse or promote products derived+      from this software without specific prior written permission.++THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS 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 COPYRIGHT+OWNER 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,1 @@+# hs-swisstable-hashtables-class
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ hs-swisstable-hashtables-class.cabal view
@@ -0,0 +1,56 @@+cabal-version: 1.12++-- This file has been generated from package.yaml by hpack version 0.33.0.+--+-- see: https://github.com/sol/hpack+--+-- hash: 27df84dbb7a81c50344e04aba85e60642caf53894d7b902b54455d3d6cff566e++name:           hs-swisstable-hashtables-class+version:        0.1.0.0+synopsis:       Data.HashTable.Class instance definition for Data.HashTable.ST.Swiss+description:    Please see the README on GitHub at <https://github.com/nakaji-dayo/hs-swisstable-hashtables-class#readme>+category:       Data+homepage:       https://github.com/nakaji-dayo/hs-swisstable-hashtables-class#readme+bug-reports:    https://github.com/nakaji-dayo/hs-swisstable-hashtables-class/issues+author:         Daishi Nakajima+maintainer:     nakaji.dayo@gmail.com+copyright:      2021 Daishi Nakajima+license:        BSD3+license-file:   LICENSE+build-type:     Simple+extra-source-files:+    README.md+    ChangeLog.md++source-repository head+  type: git+  location: https://github.com/nakaji-dayo/hs-swisstable-hashtables-class++library+  exposed-modules:+      Data.HashTable.ST.Swiss.Instance+  other-modules:+      Paths_hs_swisstable_hashtables_class+  hs-source-dirs:+      src+  build-depends:+      base >=4.7 && <5+    , hashtables+    , swisstable+  default-language: Haskell2010++test-suite hs-swisstable-hashtables-class-test+  type: exitcode-stdio-1.0+  main-is: Spec.hs+  other-modules:+      Paths_hs_swisstable_hashtables_class+  hs-source-dirs:+      test+  ghc-options: -threaded -rtsopts -with-rtsopts=-N+  build-depends:+      base >=4.7 && <5+    , hashtables+    , hs-swisstable-hashtables-class+    , swisstable+  default-language: Haskell2010
+ src/Data/HashTable/ST/Swiss/Instance.hs view
@@ -0,0 +1,22 @@+module Data.HashTable.ST.Swiss.Instance where+++import           Data.HashTable.Class+import           Data.HashTable.IO       (IOHashTable)+import qualified Data.HashTable.ST.Swiss as S++instance HashTable S.Table where+    new             = S.new+    newSized        = S.newSized+    insert          = S.insert+    delete          = S.delete+    lookup          = S.lookup+    foldM           = S.foldM+    mapM_           = S.mapM_+    lookupIndex     = error "not implemented"+    nextByIndex     = error "not implemented"+    computeOverhead = error "not implemented"+    mutate          = S.mutate+    mutateST        = S.mutateST++type SwissHashTable k v = IOHashTable S.Table k v
+ test/Spec.hs view
@@ -0,0 +1,2 @@+main :: IO ()+main = putStrLn "Test suite not yet implemented"