diff --git a/aztecs.cabal b/aztecs.cabal
--- a/aztecs.cabal
+++ b/aztecs.cabal
@@ -1,6 +1,6 @@
 cabal-version: 2.4
 name:          aztecs
-version:       0.5.0.0
+version:       0.5.0.1
 license:       BSD-3-Clause
 license-file:  LICENSE
 maintainer:    matt@hunzinger.me
@@ -19,6 +19,11 @@
     type:     git
     location: https://github.com/matthunz/aztecs.git
 
+flag examples
+  description:       Build examples
+  default:           False
+  manual:            True
+
 library
     exposed-modules:
         Data.Aztecs
@@ -48,9 +53,11 @@
     hs-source-dirs:   examples
     default-language: Haskell2010
     ghc-options:      -Wall
-    build-depends:
-        base >=4.6 && <5,
-        aztecs
+    if flag(examples)
+        build-depends: base, aztecs
+    else
+        buildable: False
+
 
 test-suite aztecs-test
     type:             exitcode-stdio-1.0
