Ref 0.1.0.0 → 0.1.1.0
raw patch · 2 files changed
+7/−4 lines, 2 filesdep +ghc-prim
Dependencies added: ghc-prim
Files
- Ref.cabal +2/−2
- src/Data/Ref.hs +5/−2
Ref.cabal view
@@ -10,7 +10,7 @@ -- PVP summary: +-+------- breaking API changes -- | | +----- non-breaking API additions -- | | | +--- code changes with no API change-version: 0.1.0.0+version: 0.1.1.0 -- A short (one-line) description of the package. synopsis: Generic Mutable Ref Abstraction Layer @@ -63,7 +63,7 @@ -- other-extensions: -- Other library packages from which modules are imported.- build-depends: base ==4.6.*+ build-depends: base ==4.6.*, ghc-prim -- Directories containing source files. hs-source-dirs: src
src/Data/Ref.hs view
@@ -2,14 +2,14 @@ {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE DataKinds #-} -module Data.Ref where+module Data.Ref(Ref(..), module Data.Ref.CAS )where {- -} import qualified Data.IORef as IR import qualified Data.STRef.Strict as SR import Control.Monad.ST.Safe (ST)-+import Data.Ref.CAS import Control.Monad {- I can't choose what sort of ref you give me,@@ -21,6 +21,9 @@ also worth thinking about how to support analogous generic api for concurrent operations -}+++ class Ref ref where type RefM ref :: * -> *