Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Word80 and Int80 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/Data/DoubleWord.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,19 @@
{-# LANGUAGE DeriveGeneric #-}

-- | This module provides strict (low and high halves are unpacked)
-- signed and unsigned binary word data types of sizes 96, 128,
-- signed and unsigned binary word data types of sizes 80, 96, 128,
-- 160, 192, 224, and 256 bits.
module Data.DoubleWord
( module Data.BinaryWord
, module Data.DoubleWord.Base
, Word80(..)
, Word96(..)
, Word128(..)
, Word160(..)
, Word192(..)
, Word224(..)
, Word256(..)
, Int80(..)
, Int96(..)
, Int128(..)
, Int160(..)
Expand All @@ -32,6 +34,8 @@ import Data.BinaryWord
import Data.DoubleWord.Base
import Data.DoubleWord.TH

mkUnpackedDoubleWord "Word80" ''Word16 "Int80" ''Int16 ''Word64
[''Typeable, ''Data, ''Generic]
mkUnpackedDoubleWord "Word96" ''Word32 "Int96" ''Int32 ''Word64
[''Typeable, ''Data, ''Generic]
mkUnpackedDoubleWord "Word128" ''Word64 "Int128" ''Int64 ''Word64
Expand Down