diff --git a/src/Text/Sundown/Html.hs b/src/Text/Sundown/Html.hs
--- a/src/Text/Sundown/Html.hs
+++ b/src/Text/Sundown/Html.hs
@@ -45,16 +45,16 @@
 
 -- | Parses markdown, returns the Html.
 renderHtml :: (ToBS a, FromBS b)
-           => a
-           -> Extensions
+           => Extensions
            -> HtmlRenderMode
            -> Bool              -- ^ If true, smartypant the output
            -> Maybe Int
            -- ^ The maximum nesting of the HTML. If Nothing, a default value
            -- (16) will be used.
+           -> a
            -> b
-renderHtml input exts mode sp maxNestingM =
-    fromBS $ BS.renderHtml (toBS input) exts mode sp maxNestingM
+renderHtml exts mode sp maxNestingM input =
+    fromBS $ BS.renderHtml exts mode sp maxNestingM $ toBS input
 
 smartypants :: (ToBS a, FromBS b) => a -> b
 smartypants = fromBS . BS.smartypants . toBS
diff --git a/src/Text/Sundown/Html/ByteString.hs b/src/Text/Sundown/Html/ByteString.hs
--- a/src/Text/Sundown/Html/ByteString.hs
+++ b/src/Text/Sundown/Html/ByteString.hs
@@ -38,16 +38,16 @@
 defaultMaxNesting = 16
 
 -- | Parses a 'ByteString' containing the markdown, returns the Html code.
-renderHtml :: ByteString
-           -> Extensions
+renderHtml :: Extensions
            -> HtmlRenderMode
            -> Bool              -- ^ If true, smartypant the output
            -> Maybe Int
            -- ^ The maximum nesting of the HTML. If Nothing, a default value
            -- (16) will be used.
            -> ByteString
+           -> ByteString
 {-# NOINLINE renderHtml #-}
-renderHtml input exts mode sp maxNestingM =
+renderHtml exts mode sp maxNestingM input =
     unsafePerformIO $
     alloca $ \callbacks ->
     alloca $ \options ->
diff --git a/src/Text/Sundown/Html/String.hs b/src/Text/Sundown/Html/String.hs
--- a/src/Text/Sundown/Html/String.hs
+++ b/src/Text/Sundown/Html/String.hs
@@ -15,13 +15,13 @@
 import qualified Text.Sundown.Html as Sundown
 
 -- | Parses a 'String' containing the markdown, returns the Html code.
-renderHtml :: String
-           -> Extensions
+renderHtml :: Extensions
            -> HtmlRenderMode
            -> Bool              -- ^ If true, smartypant the output
            -> Maybe Int
            -- ^ The maximum nesting of the HTML. If Nothing, a default value
            -- (16) will be used.
+           -> String
            -> String
 renderHtml = Sundown.renderHtml
 
diff --git a/src/Text/Sundown/Html/Text.hs b/src/Text/Sundown/Html/Text.hs
--- a/src/Text/Sundown/Html/Text.hs
+++ b/src/Text/Sundown/Html/Text.hs
@@ -17,13 +17,13 @@
 import qualified Text.Sundown.Html as Sundown
 
 -- | Parses a 'Text' containing the markdown, returns the Html code.
-renderHtml :: Text
-           -> Extensions
+renderHtml :: Extensions
            -> HtmlRenderMode
            -> Bool              -- ^ If true, smartypant the output
            -> Maybe Int
            -- ^ The maximum nesting of the HTML. If Nothing, a default value
            -- (16) will be used.
+           -> Text
            -> Text
 renderHtml = Sundown.renderHtml
 
diff --git a/sundown.cabal b/sundown.cabal
--- a/sundown.cabal
+++ b/sundown.cabal
@@ -1,6 +1,6 @@
 Cabal-version:      >= 1.6
 Name:               sundown
-Version:            0.5.3
+Version:            0.6
 Author:             Francesco Mazzoli (f@mazzo.li)
 Maintainer:         Francesco Mazzoli (f@mazzo.li)
 Build-Type:         Simple
