diff --git a/flatpak/llvm-3.8.1.json b/flatpak/llvm-3.8.1.json
new file mode 100644
--- /dev/null
+++ b/flatpak/llvm-3.8.1.json
@@ -0,0 +1,27 @@
+{
+    "cleanup": [
+        "/bin",
+        "/include",
+        "/lib/debug",
+        "/lib/libLLVM*.a",
+        "/lib/LLVMHello.so",
+        "/share"
+    ],
+    "sources": [
+        {
+            "url": "http://releases.llvm.org/3.8.1/llvm-3.8.1.src.tar.xz",
+            "type": "archive",
+            "sha256": "6e82ce4adb54ff3afc18053d6981b6aed1406751b8742582ed50f04b5ab475f9"
+        }
+    ],
+    "config-opts": [
+        "-DCMAKE_BUILD_TYPE=Release",
+        "-DLLVM_ENABLE_ASSERTIONS=ON",
+        "-DLLVM_BUILD_TOOLS=OFF",
+        "-DLLVM_INCLUDE_EXAMPLES=OFF",
+        "-DLLVM_BUILD_LLVM_DYLIB=ON"
+    ],
+    "name": "llvm-3.8",
+    "buildsystem": "cmake",
+    "builddir": true
+}
diff --git a/llvm-ffi.cabal b/llvm-ffi.cabal
--- a/llvm-ffi.cabal
+++ b/llvm-ffi.cabal
@@ -1,6 +1,6 @@
 Cabal-Version: 2.2
 Name:          llvm-ffi
-Version:       3.8.1.1
+Version:       3.8.1.2
 License:       BSD-3-Clause
 License-File:  LICENSE
 Synopsis:      FFI bindings to the LLVM compiler toolkit.
@@ -51,6 +51,7 @@
   include/support.h
   tool/ltrace.config
   tool/ltrace.readme
+  flatpak/llvm-3.8.1.json
 
 Flag developer
   Description: developer mode - warnings let compilation fail
@@ -91,13 +92,13 @@
   Location: http://hub.darcs.net/thielema/llvm-ffi/
 
 Source-Repository this
-  Tag:      3.8.1.1
+  Tag:      3.8.1.2
   Type:     darcs
   Location: http://hub.darcs.net/thielema/llvm-ffi/
 
 Library
   Build-Depends:
-    enumset >=0.0.4 && <0.1,
+    enumset >=0.0.5 && <0.1,
     base >= 3 && < 5
 
   Hs-Source-Dirs: src
diff --git a/src/LLVM/FFI/Core.hsc b/src/LLVM/FFI/Core.hsc
--- a/src/LLVM/FFI/Core.hsc
+++ b/src/LLVM/FFI/Core.hsc
@@ -578,7 +578,7 @@
 import Foreign.C.String (CString)
 import Foreign.Ptr (Ptr, FunPtr)
 
-import qualified Data.EnumSet as EnumSet
+import qualified Data.EnumBitSet as EnumSet
 import Data.Typeable (Typeable)
 
 import Data.Int (Int32)
diff --git a/src/LLVM/FFI/ExecutionEngine.hs b/src/LLVM/FFI/ExecutionEngine.hs
--- a/src/LLVM/FFI/ExecutionEngine.hs
+++ b/src/LLVM/FFI/ExecutionEngine.hs
@@ -64,7 +64,7 @@
 import Foreign.C.String (CString)
 import Foreign.Ptr (Ptr, FunPtr)
 
-import qualified Data.EnumSet as EnumSet
+import qualified Data.EnumBitSet as EnumSet
 import Data.Typeable (Typeable)
 
 
