Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

regexp-grid: Make Field a newtype

  • Loading branch information...
commit e60f4a06a1e2fb2d0d1de06d12c9f65392836565 1 parent b84a3c3
@ion1 ion1 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/regexp-grid/RegexpGrid/Types.hs
2  examples/regexp-grid/RegexpGrid/Types.hs
@@ -30,7 +30,7 @@ data Pos = P00|P01|P02|P03|P04|P05|P06
-- 5 bits are enough for A–Z. (The subset of the alphabet used by the regexps
-- also requires 5 bits. For simplicity, just use the full alphabet.)
-data Field = Field Bit5
+newtype Field = Field Bit5
deriving (Show, Typeable, Generic)
instance Boolean Field

0 comments on commit e60f4a0

Please sign in to comment.
Something went wrong with that request. Please try again.