diff --git a/cli-setup.cabal b/cli-setup.cabal
--- a/cli-setup.cabal
+++ b/cli-setup.cabal
@@ -1,5 +1,5 @@
 name:                cli-setup
-version:             0.2.0.0
+version:             0.2.0.1
 synopsis:            Helper setup scripts for packaging command-line tools.
 description:         Provides functions to set up manpages and shell completions. Intended to be used in the @Setup.hs@ module.
 homepage:            https://github.com/vmchale/cli-setup#readme
diff --git a/src/Distribution/CommandLine.hs b/src/Distribution/CommandLine.hs
--- a/src/Distribution/CommandLine.hs
+++ b/src/Distribution/CommandLine.hs
@@ -27,7 +27,7 @@
     case h of
         Just h' -> do
             proceed <- doesDirectoryExist (h' ++ "/.config/thefuck/rules")
-            bool (pure ()) (writeFile rules (h' ++ "/.config/thefuck/rules/optparse-applicative.py")) proceed
+            bool (pure ()) (writeFile (h' ++ "/.config/thefuck/rules/optparse-applicative.py") rules) proceed
         Nothing -> pure ()
 
 -- | Add a line exporting the modified @MANPATH@ to the user's @bashrc@, if it
