diff --git a/haskellscript.cabal b/haskellscript.cabal
--- a/haskellscript.cabal
+++ b/haskellscript.cabal
@@ -1,5 +1,5 @@
 name:                   haskellscript
-version:                0.1.1
+version:                0.1.2
 synopsis:               Command line tool for running Haskell scripts with a hashbang.
 description:
   This tool provides the ability to script in a shell with Haskell (including dependencies) the same way that has been possible with bash scripts or Python.
@@ -32,7 +32,8 @@
   > import Data.ByteString.Lazy hiding (putStrLn, unpack)
   > import Data.Text
   > import Data.Text.Encoding
-  > main = putStrLn $ unpack $ decodeUtf8 $ toStrict $ encode $ object ["Test" .= True, "Example" .= True]
+  > jsonExample = object ["Test" .= True, "Example" .= True]
+  > main = putStrLn $ unpack $ decodeUtf8 $ toStrict $ encode jsonExample 
   .
   Note that because the dependencies specified are hashed to enable re-use it's worth specifying
   exact versions across multiple scripts to prevent the version used being quite old after a while.
