diff options
Diffstat (limited to 'src/Text/Pandoc/Options.hs')
-rw-r--r-- | src/Text/Pandoc/Options.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Text/Pandoc/Options.hs b/src/Text/Pandoc/Options.hs index 664b84123..a5d79d319 100644 --- a/src/Text/Pandoc/Options.hs +++ b/src/Text/Pandoc/Options.hs @@ -1,8 +1,9 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE DeriveDataTypeable #-} {-# LANGUAGE DeriveGeneric #-} -{-# LANGUAGE TemplateHaskell #-} +{-# LANGUAGE LambdaCase #-} {-# LANGUAGE OverloadedStrings #-} +{-# LANGUAGE TemplateHaskell #-} {- | Module : Text.Pandoc.Options Copyright : Copyright (C) 2012-2020 John MacFarlane @@ -327,7 +328,7 @@ $(deriveJSON defaultOptions{ constructorTagModifier = } ''CiteMethod) $(deriveJSON defaultOptions{ constructorTagModifier = - \t -> case t of + \case "NoObfuscation" -> "none" "ReferenceObfuscation" -> "references" "JavascriptObfuscation" -> "javascript" |