diff --git a/src/Render.hs b/src/Render.hs
--- a/src/Render.hs
+++ b/src/Render.hs
@@ -20,7 +20,6 @@
 import Distribution.Types.PkgconfigDependency
 import Distribution.Types.PkgconfigName
 import Distribution.Version
-import Documentation.Haddock.Types
 import Prelude.Compat hiding ((<$>))
 import qualified Prelude.Compat as P
 import Text.PrettyPrint.ANSI.Leijen
@@ -62,7 +61,7 @@
     val' (Spaces ls) = pure $ fillSep $ map filepath ls
     val' (Modules ms) = pure $ vcat $ map moduleDoc $ sort ms
     val' (Module m) = pure $ moduleDoc m
-    val' (Extensions es) = val' (LongList $ map prettyShow $ sort es)
+    val' (Extensions es) = val' (LongList $ map prettyShow es)
     val' (FlibType ty) = pure $ string $ prettyShow ty
     val' (FlibOptions fs) = val' $ Spaces $ map prettyShow fs
     val' x = error $ show x
@@ -70,12 +69,7 @@
 
 descriptionToDoc k paras = do
     n <- asks indentSize
-    return $
-        (<>) colon $
-        nest n $
-        case paras of
-            DocParagraph {} -> indent (k + 1) ds
-            _ -> linebreak <> ds
+    return $ (<>) colon $ nest n $ flatAlt (linebreak <> ds) (indent (k + 1) ds)
   where
     ds = renderDescription paras
 
diff --git a/stylish-cabal.cabal b/stylish-cabal.cabal
--- a/stylish-cabal.cabal
+++ b/stylish-cabal.cabal
@@ -1,5 +1,5 @@
 name:               stylish-cabal
-version:            0.3.0.0
+version:            0.3.0.1
 synopsis:           Format Cabal files
 description:        A tool for nicely formatting your Cabal file.
 license:            BSD3
@@ -31,8 +31,9 @@
 flag test-strictness
   default:     False
   manual:      True
-  description: Run the strictness testsuite. This requires the StrictCheck package which
-               is not yet on Hackage, and thus is disabled by default.
+  description:
+    Run the strictness testsuite. This requires the StrictCheck package which is not yet
+    on Hackage, and thus is disabled by default.
 
 library
   exposed-modules:    StylishCabal
@@ -45,13 +46,13 @@
                       Types.Block
                       Types.Field
   hs-source-dirs:     src
-  build-depends:      base            == 4.*
-                    , Cabal           == 2.0.*
+  build-depends:      base            >= 4.4 && < 4.11
+                    , Cabal           ^>= 2.0.0
                     , ansi-wl-pprint
                     , base-compat
                     , data-default
                     , deepseq
-                    , haddock-library
+                    , haddock-library ^>= 1.4.0
                     , mtl
                     , split
   default-language:   Haskell2010
