diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-01-15 22:52:14 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:42 +0100 |
commit | 17916f478bc949e53c49720d0d930e03b0367176 (patch) | |
tree | 15bfbf9eca2d92b0123d149e632c376b3ee115bc /src/Text | |
parent | 4007d6a89749ff6576e65bb08631ff14a6d0ee20 (diff) | |
download | pandoc-17916f478bc949e53c49720d0d930e03b0367176.tar.gz |
Put an Integer rather than Word64 behind Extensions.
This allows us to expand indefinitely.
No measurable performance penalty.
Diffstat (limited to 'src/Text')
-rw-r--r-- | src/Text/Pandoc/Extensions.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Extensions.hs b/src/Text/Pandoc/Extensions.hs index 14422ce39..d5e59e8e1 100644 --- a/src/Text/Pandoc/Extensions.hs +++ b/src/Text/Pandoc/Extensions.hs @@ -42,14 +42,13 @@ module Text.Pandoc.Extensions ( Extension(..) , githubMarkdownExtensions , multimarkdownExtensions ) where -import Data.Word (Word64) import Data.Bits (testBit, setBit, clearBit) import Data.Data (Data) import Data.Typeable (Typeable) import GHC.Generics (Generic) -newtype Extensions = Extensions Word64 - deriving (Show, Read, Eq, Ord, Bounded, Data, Typeable, Generic) +newtype Extensions = Extensions Integer + deriving (Show, Read, Eq, Ord, Data, Typeable, Generic) extensionsFromList :: [Extension] -> Extensions extensionsFromList = foldr enableExtension emptyExtensions |