diff --git a/Foundation.hs b/Foundation.hs
--- a/Foundation.hs
+++ b/Foundation.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE TypeFamilies #-}
 {-
 
 Define the web application's foundation, in the usual Yesod style.
diff --git a/Hledger/Web/Options.hs b/Hledger/Web/Options.hs
--- a/Hledger/Web/Options.hs
+++ b/Hledger/Web/Options.hs
@@ -1,8 +1,3 @@
-{-# LANGUAGE TemplateHaskell, CPP #-}
-{-|
-
--}
-
 module Hledger.Web.Options
 where
 import Prelude
diff --git a/hledger-web.cabal b/hledger-web.cabal
--- a/hledger-web.cabal
+++ b/hledger-web.cabal
@@ -1,5 +1,5 @@
 name:           hledger-web
-version: 0.21.1
+version: 0.21.2
 category:       Finance
 synopsis:       A web interface for the hledger accounting tool.
 description:    
@@ -66,25 +66,27 @@
     Default:       False
 
 library
-    cpp-options:   -DVERSION="0.21.1"
+    cpp-options:   -DVERSION="0.21.2"
     if flag(dev) || flag(library-only)
         cpp-options: -DDEVELOPMENT
  
     ghc-options:   -Wall -fno-warn-unused-do-bind
  
-    extensions: TemplateHaskell
-                QuasiQuotes
-                OverloadedStrings
-                NoImplicitPrelude
+    extensions:
                 CPP
                 MultiParamTypeClasses
-                TypeFamilies
-                GADTs
-                GeneralizedNewtypeDeriving
-                FlexibleContexts
-                EmptyDataDecls
-                NoMonomorphismRestriction
+                NoImplicitPrelude
+                OverloadedStrings
+                QuasiQuotes
                 RecordWildCards
+                TemplateHaskell
+                TypeFamilies
+                -- seem to not be needed at present:
+                -- GADTs
+                -- GeneralizedNewtypeDeriving
+                -- FlexibleContexts
+                -- EmptyDataDecls
+                -- NoMonomorphismRestriction
 
     hs-source-dirs:  . app
     exposed-modules:  Application
@@ -107,8 +109,8 @@
                      Hledger.Web.Options
                      -- Setup -- stops yesod devel complaining, requires build-depends: Cabal
     build-depends:
-                     hledger              == 0.21.1
-                   , hledger-lib          == 0.21.1
+                     hledger              == 0.21.2
+                   , hledger-lib          == 0.21.2
                    , base                 >= 4 && < 5
                    , bytestring
                    , clientsession
@@ -155,7 +157,7 @@
     if flag(library-only)
         Buildable: False
 
-    cpp-options:   -DVERSION="0.21.1"
+    cpp-options:   -DVERSION="0.21.2"
     if flag(dev)
         cpp-options:   -DDEVELOPMENT
 
@@ -167,15 +169,15 @@
     else
         ghc-options:   -O2
 
-    extensions: TemplateHaskell
-                QuasiQuotes
-                OverloadedStrings
-                NoImplicitPrelude
+    extensions: 
                 CPP
-                OverloadedStrings
                 MultiParamTypeClasses
-                TypeFamilies
+                NoImplicitPrelude
+                OverloadedStrings
+                QuasiQuotes
                 RecordWildCards
+                TemplateHaskell
+                TypeFamilies
 
     hs-source-dirs:  . app
     main-is:         main.hs
@@ -199,8 +201,8 @@
                      Hledger.Web.Options
 
     build-depends:
-                     hledger              == 0.21.1
-                   , hledger-lib          == 0.21.1
+                     hledger              == 0.21.2
+                   , hledger-lib          == 0.21.2
                    , base                 >= 4 && < 5
                    , bytestring
                    , clientsession
