summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiklasHambuechen <>2018-11-08 15:09:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-11-08 15:09:00 (GMT)
commit2456e10176cda91e7d7233fd25bde2c1ba456b04 (patch)
tree8df5ed9c9a687ec3e58ea6f590f5df20197b6b4f
parentcd5e05f82d1d2db9c2313312d8c3c6332cac97b7 (diff)
version 0.2.0.0HEAD0.2.0.0master
-rw-r--r--MMAP.hsc9
-rw-r--r--Setup.hs2
-rw-r--r--SharedMemory.hs1
-rw-r--r--shared-memory.cabal2
4 files changed, 7 insertions, 7 deletions
diff --git a/MMAP.hsc b/MMAP.hsc
index adb935b..7f3583d 100644
--- a/MMAP.hsc
+++ b/MMAP.hsc
@@ -6,7 +6,6 @@ module MMAP where
import Control.Exception
import Control.Monad
import Data.Bits ((.|.))
-import Data.Monoid
import Data.Typeable
import Foreign.C.Types
import Foreign.Ptr
@@ -111,7 +110,9 @@ protNone = ProtOption #const PROT_NONE
instance Monoid ProtOption where
mempty = protNone
- mappend (ProtOption a) (ProtOption b) = ProtOption (a .|. b)
+
+instance Semigroup ProtOption where
+ (<>) (ProtOption a) (ProtOption b) = ProtOption (a .|. b)
-- | Determines whether updates to the mapping are visible
@@ -218,7 +219,9 @@ mapUninitialized = MmapOptionalFlag #const MAP_UNINITIALIZED
instance Monoid MmapOptionalFlag where
mempty = MmapOptionalFlag 0
- mappend (MmapOptionalFlag a) (MmapOptionalFlag b) = MmapOptionalFlag (a .|. b)
+
+instance Semigroup MmapOptionalFlag where
+ (<>) (MmapOptionalFlag a) (MmapOptionalFlag b) = MmapOptionalFlag (a .|. b)
-- | An `MmapSharedFlag` with one or more `MmapOptionalFlag`s.
diff --git a/Setup.hs b/Setup.hs
deleted file mode 100644
index 9a994af..0000000
--- a/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
-import Distribution.Simple
-main = defaultMain
diff --git a/SharedMemory.hs b/SharedMemory.hs
index 74a7775..a86d06d 100644
--- a/SharedMemory.hs
+++ b/SharedMemory.hs
@@ -3,7 +3,6 @@ module SharedMemory
( openSharedMemory
) where
-import Data.Monoid
import Foreign.C.Types (CSize)
import qualified Foreign.Concurrent as FC
import Foreign.ForeignPtr
diff --git a/shared-memory.cabal b/shared-memory.cabal
index 98b36e8..68219ed 100644
--- a/shared-memory.cabal
+++ b/shared-memory.cabal
@@ -1,5 +1,5 @@
name: shared-memory
-version: 0.1.0.0
+version: 0.2.0.0
license: MIT
author: Niklas Hamb├╝chen <mail@nh2.me>
maintainer: Niklas Hamb├╝chen <mail@nh2.me>