diff --git a/ALUT.cabal b/ALUT.cabal
--- a/ALUT.cabal
+++ b/ALUT.cabal
@@ -1,5 +1,5 @@
 name: ALUT
-version: 2.4.0.1
+version: 2.4.0.2
 synopsis: A binding for the OpenAL Utility Toolkit
 description:
   A Haskell binding for the OpenAL Utility Toolkit, which makes
@@ -9,7 +9,7 @@
   <http://distro.ibiblio.org/rootlinux/rootlinux-ports/more/freealut/freealut-1.1.0/doc/alut.html>.
 homepage: https://github.com/haskell-openal/ALUT
 bug-reports: https://github.com/haskell-openal/ALUT/issues
-copyright: Copyright (C) 2005-2015 Sven Panne
+copyright: Copyright (C) 2005-2016 Sven Panne
 license: BSD3
 license-file: LICENSE
 author: Sven Panne
@@ -20,14 +20,6 @@
 extra-source-files:
   CHANGELOG.md
   README.md
-  examples/Basic/HelloWorld.hs
-  examples/Basic/OpenALInfo.hs
-  examples/Basic/PlayFile.hs
-  examples/TestSuite/TestErrorStuff.hs
-  examples/TestSuite/TestFileLoader.hs
-  examples/TestSuite/TestMemoryLoader.hs
-  examples/TestSuite/TestVersion.hs
-  examples/TestSuite/TestWaveforms.hs
   examples/TestSuite/file1.wav
   examples/TestSuite/file2.au
   examples/TestSuite/file3.raw
@@ -37,6 +29,10 @@
     When compiling under Windows, use the native libraries instead of e.g. the
     ones coming with Cygwin.
 
+flag BuildExamples
+  description: Build various ALUT examples.
+  default: False
+
 library
   exposed-modules:
     Sound.ALUT
@@ -69,6 +65,78 @@
       frameworks: ALUT
     else
       extra-libraries: alut
+
+executable Basic-HelloWorld
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: HelloWorld.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/Basic
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable Basic-OpenALInfo
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: OpenALInfo.hs
+  build-depends: base >= 3 && < 5, pretty, ALUT
+  hs-source-dirs: examples/Basic
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable Basic-PlayFile
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: PlayFile.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/Basic
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable TestSuite-TestErrorStuff
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: TestErrorStuff.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/TestSuite
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable TestSuite-TestFileLoader
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: TestFileLoader.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/TestSuite
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable TestSuite-TestMemoryLoader
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: TestMemoryLoader.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/TestSuite
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable TestSuite-TestVersion
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: TestVersion.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/TestSuite
+  default-language: Haskell2010
+  ghc-options: -Wall
+
+executable TestSuite-TestWaveforms
+  if !flag(BuildExamples)
+    buildable: False
+  main-is: TestWaveforms.hs
+  build-depends: base >= 3 && < 5, ALUT
+  hs-source-dirs: examples/TestSuite
+  default-language: Haskell2010
+  ghc-options: -Wall
 
 source-repository head
   type: git
diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,7 @@
+2.4.0.2
+-------
+* Build examples via cabal.
+
 2.4.0.1
 -------
 * Relaxed upper version bound for `transformers`.
diff --git a/LICENSE b/LICENSE
--- a/LICENSE
+++ b/LICENSE
@@ -1,4 +1,4 @@
-Copyright (c) 2005-2015, Sven Panne
+Copyright (c) 2005-2016, Sven Panne
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
diff --git a/examples/Basic/HelloWorld.hs b/examples/Basic/HelloWorld.hs
--- a/examples/Basic/HelloWorld.hs
+++ b/examples/Basic/HelloWorld.hs
@@ -1,6 +1,6 @@
 {-
    HelloWorld.hs (adapted from hello_world.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/Basic/OpenALInfo.hs b/examples/Basic/OpenALInfo.hs
--- a/examples/Basic/OpenALInfo.hs
+++ b/examples/Basic/OpenALInfo.hs
@@ -1,6 +1,6 @@
 {-
    OpenALInfo.hs (modeled after OpenGL's glxinfo)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/Basic/PlayFile.hs b/examples/Basic/PlayFile.hs
--- a/examples/Basic/PlayFile.hs
+++ b/examples/Basic/PlayFile.hs
@@ -1,6 +1,6 @@
 {-
    PlayFile.hs (adapted from playfile.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/TestSuite/TestErrorStuff.hs b/examples/TestSuite/TestErrorStuff.hs
--- a/examples/TestSuite/TestErrorStuff.hs
+++ b/examples/TestSuite/TestErrorStuff.hs
@@ -1,6 +1,6 @@
 {-
    TestErrorStuff.hs (adapted from test_errorstuff.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/TestSuite/TestFileLoader.hs b/examples/TestSuite/TestFileLoader.hs
--- a/examples/TestSuite/TestFileLoader.hs
+++ b/examples/TestSuite/TestFileLoader.hs
@@ -1,6 +1,6 @@
 {-
    TestFileLoader.hs (adapted from test_fileloader.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/TestSuite/TestMemoryLoader.hs b/examples/TestSuite/TestMemoryLoader.hs
--- a/examples/TestSuite/TestMemoryLoader.hs
+++ b/examples/TestSuite/TestMemoryLoader.hs
@@ -1,6 +1,6 @@
 {-
    TestMemoryLoader.hs (adapted from test_memoryloader.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/TestSuite/TestVersion.hs b/examples/TestSuite/TestVersion.hs
--- a/examples/TestSuite/TestVersion.hs
+++ b/examples/TestSuite/TestVersion.hs
@@ -1,6 +1,6 @@
 {-
    TestVersion.hs (adapted from test_version.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/examples/TestSuite/TestWaveforms.hs b/examples/TestSuite/TestWaveforms.hs
--- a/examples/TestSuite/TestWaveforms.hs
+++ b/examples/TestSuite/TestWaveforms.hs
@@ -1,6 +1,6 @@
 {-
    TestWaveforms.hs (adapted from test_waveforms.c in freealut)
-   Copyright (c) Sven Panne 2005-2015
+   Copyright (c) Sven Panne 2005-2016
    This file is part of the ALUT package & distributed under a BSD-style license.
    See the file LICENSE.
 -}
diff --git a/src/Sound/ALUT.hs b/src/Sound/ALUT.hs
--- a/src/Sound/ALUT.hs
+++ b/src/Sound/ALUT.hs
@@ -1,7 +1,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Config.hs b/src/Sound/ALUT/Config.hs
--- a/src/Sound/ALUT/Config.hs
+++ b/src/Sound/ALUT/Config.hs
@@ -3,7 +3,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Config
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Constants.hs b/src/Sound/ALUT/Constants.hs
--- a/src/Sound/ALUT/Constants.hs
+++ b/src/Sound/ALUT/Constants.hs
@@ -2,7 +2,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Constants
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Errors.hs b/src/Sound/ALUT/Errors.hs
--- a/src/Sound/ALUT/Errors.hs
+++ b/src/Sound/ALUT/Errors.hs
@@ -2,7 +2,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Errors
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Initialization.hs b/src/Sound/ALUT/Initialization.hs
--- a/src/Sound/ALUT/Initialization.hs
+++ b/src/Sound/ALUT/Initialization.hs
@@ -1,7 +1,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Initialization
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Loaders.hs b/src/Sound/ALUT/Loaders.hs
--- a/src/Sound/ALUT/Loaders.hs
+++ b/src/Sound/ALUT/Loaders.hs
@@ -1,7 +1,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Loaders
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Sleep.hs b/src/Sound/ALUT/Sleep.hs
--- a/src/Sound/ALUT/Sleep.hs
+++ b/src/Sound/ALUT/Sleep.hs
@@ -1,7 +1,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Sleep
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
diff --git a/src/Sound/ALUT/Version.hs b/src/Sound/ALUT/Version.hs
--- a/src/Sound/ALUT/Version.hs
+++ b/src/Sound/ALUT/Version.hs
@@ -1,7 +1,7 @@
 --------------------------------------------------------------------------------
 -- |
 -- Module      :  Sound.ALUT.Version
--- Copyright   :  (c) Sven Panne 2005-2015
+-- Copyright   :  (c) Sven Panne 2005-2016
 -- License     :  BSD3
 --
 -- Maintainer  :  Sven Panne <svenpanne@gmail.com>
