diff --git a/Graphics/DynamicGraph/FillLine.hs b/Graphics/DynamicGraph/FillLine.hs
--- a/Graphics/DynamicGraph/FillLine.hs
+++ b/Graphics/DynamicGraph/FillLine.hs
@@ -23,7 +23,9 @@
 >     return res
 > 
 > main = eitherT putStrLn return $ do
->     setupGLFW
+>     res <- lift setupGLFW
+>     unless res (left "Unable to initilize GLFW")
+>     
 >     lineGraph  <- window 1024 480 $ pipeify <$> renderFilledLine 1000 jet_mod
 > 
 >     lift $ runEffect $ randomVect >-> lineGraph
diff --git a/Graphics/DynamicGraph/Line.hs b/Graphics/DynamicGraph/Line.hs
--- a/Graphics/DynamicGraph/Line.hs
+++ b/Graphics/DynamicGraph/Line.hs
@@ -25,7 +25,9 @@
 >     return res
 > 
 > main = eitherT putStrLn return $ do
->     setupGLFW
+>     res <- lift setupGLFW
+>     unless res (left "Unable to initilize GLFW")
+>     
 >     lineGraph <- window 1024 480 $ pipeify <$> renderLine 1000 1024
 > 
 >     lift $ runEffect $ randomVect >-> lineGraph
diff --git a/Graphics/DynamicGraph/Waterfall.hs b/Graphics/DynamicGraph/Waterfall.hs
--- a/Graphics/DynamicGraph/Waterfall.hs
+++ b/Graphics/DynamicGraph/Waterfall.hs
@@ -22,7 +22,9 @@
 >     return res
 > 
 > main = eitherT putStrLn return $ do
->     setupGLFW
+>     res <- lift setupGLFW
+>     unless res (left "Unable to initilize GLFW")
+>     
 >     waterfall <- window 1024 480 $ renderWaterfall 1000 1000 jet_mod
 > 
 >     lift $ runEffect $ randomVect >-> waterfall
diff --git a/Graphics/DynamicGraph/Window.hs b/Graphics/DynamicGraph/Window.hs
--- a/Graphics/DynamicGraph/Window.hs
+++ b/Graphics/DynamicGraph/Window.hs
@@ -22,7 +22,9 @@
 >     return res
 > 
 > main = eitherT putStrLn return $ do
->     setupGLFW
+>     res <- lift setupGLFW
+>     unless res (left "Unable to initilize GLFW")
+>
 >     waterfall <- window 1024 480 $ renderWaterfall 1000 1000 jet_mod
 > 
 >     lift $ runEffect $ randomVect >-> waterfall
diff --git a/dynamic-graph.cabal b/dynamic-graph.cabal
--- a/dynamic-graph.cabal
+++ b/dynamic-graph.cabal
@@ -1,5 +1,5 @@
 name:                dynamic-graph
-version:             0.1.0.7
+version:             0.1.0.8
 synopsis:            Draw and update graphs in real time with OpenGL
 description:         
     Draw and update graphs in real time with OpenGL. Suitable for displaying large amounts of frequently changing data. Line graphs and waterfall plots are supported, as well as axis drawing.
