X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=src%2FOctet.hs;h=248b3396c40f46ebac61dda9008dc8bb4e9b1ba0;hb=6b71fc1e444cc95acdef91ad814e4f97b01ec52e;hp=fa004c5085df4849a4b2ff44033106d10fd90193;hpb=fb27e584ddc500520820ec3b5ede1da7cc9d2853;p=hath.git diff --git a/src/Octet.hs b/src/Octet.hs index fa004c5..248b339 100644 --- a/src/Octet.hs +++ b/src/Octet.hs @@ -7,15 +7,16 @@ where import Test.Tasty ( TestTree, testGroup ) import Test.Tasty.HUnit ( (@?=), testCase ) import Test.Tasty.QuickCheck ( - Arbitrary(..), + Arbitrary( arbitrary ), Gen, Property, (==>), testProperty ) -import Bit as B (Bit(..)) -import Maskable (Maskable(..)) -import Maskbits (Maskbits(..)) +import Bit as B( Bit( Zero, One) ) +import Maskable( Maskable( apply_mask) ) +import Maskbits( + Maskbits( Zero, One, Two, Three, Four, Five, Six, Seven, Eight ) ) -- | An Octet consists of eight bits. For our purposes, the most -- significant bit will come "first." That is, b1 is in the 2^7