diff --git a/Development/NSIS/Library.hs b/Development/NSIS/Library.hs
--- a/Development/NSIS/Library.hs
+++ b/Development/NSIS/Library.hs
@@ -2,8 +2,10 @@
 
 module Development.NSIS.Library where
 
+import Control.Monad
 import Development.NSIS.Sugar
 
+
 -- | Replace one string with another string, in a target string. As some examples:
 --
 -- > strReplace "t" "XX" "test" %== "XXesXX"
@@ -41,7 +43,8 @@
 
 -- | Write a file comprising of a set of lines.
 writeFileLines :: Exp FilePath -> [Exp String] -> Action ()
-writeFileLines a b = writeFile' a $ strUnlines b
+writeFileLines a b = withFile' ModeWrite a $ \hdl ->
+    forM_ b $ \s -> fileWrite hdl $ s & "\r\n"
 
 
 infixr 3 %&&
diff --git a/Examples/Example1.hs b/Examples/Example1.hs
--- a/Examples/Example1.hs
+++ b/Examples/Example1.hs
@@ -30,7 +30,6 @@
     -- Pages
     
     page Directory
-    page $ License "../neil/todo.txt"
     page InstFiles
 
     ---------------------------------
diff --git a/nsis.cabal b/nsis.cabal
--- a/nsis.cabal
+++ b/nsis.cabal
@@ -1,7 +1,7 @@
 cabal-version:      >= 1.6
 build-type:         Simple
 name:               nsis
-version:            0.2.1
+version:            0.2.2
 -- license is GPL v2 only
 license:            GPL
 license-file:       LICENSE
