diff --git a/haskeline-repl.cabal b/haskeline-repl.cabal
--- a/haskeline-repl.cabal
+++ b/haskeline-repl.cabal
@@ -1,5 +1,5 @@
 name:                haskeline-repl
-version:             0.2.0.0
+version:             0.3.0.0
 -- synopsis:
 description:         A convenient Haskeline wrapper
 homepage:            https://github.com/githubuser/haskeline-repl#readme
diff --git a/src/System/Console/Repl.hs b/src/System/Console/Repl.hs
--- a/src/System/Console/Repl.hs
+++ b/src/System/Console/Repl.hs
@@ -14,11 +14,11 @@
     loop = do
       line <- getInputLine prompt
       case line of
+        Just ":q" ->
+          return ()
         Just input -> do
           liftIO $ f input
           loop
-        Just ":q" ->
-          return ()
         Nothing ->
           return ()
 
