diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2016, Nikita Volkov
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
diff --git a/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,2 @@
+import Distribution.Simple
+main = defaultMain
diff --git a/library/TemplateHaskell/Compat/V0208.hs b/library/TemplateHaskell/Compat/V0208.hs
new file mode 100644
--- /dev/null
+++ b/library/TemplateHaskell/Compat/V0208.hs
@@ -0,0 +1,40 @@
+{-# LANGUAGE CPP #-}
+module TemplateHaskell.Compat.V0208 where
+
+import BasePrelude
+import Language.Haskell.TH
+
+
+classP :: Name -> [Type] -> Pred
+#if MIN_VERSION_template_haskell(2,10,0)
+classP n tl =
+  foldl AppT (ConT n) tl
+#else
+classP =
+  ClassP
+#endif
+
+instanceD :: Cxt -> Type -> [Dec] -> Dec
+#if MIN_VERSION_template_haskell(2,11,0)  
+instanceD =
+  InstanceD Nothing
+#else
+instanceD =
+  InstanceD
+#endif
+
+dataD :: Cxt -> Name -> [TyVarBndr] -> [Con] -> [Name] -> Dec
+dataD cxt name varBndrs cons derivingNames =
+#if MIN_VERSION_template_haskell(2,11,0)  
+  DataD cxt name varBndrs Nothing cons (map ConT derivingNames)
+#else
+  DataD cxt name varBndrs cons derivingNames
+#endif
+
+notStrict :: Strict
+notStrict =
+#if MIN_VERSION_template_haskell(2,11,0)
+  unsafePerformIO (runQ (bang noSourceUnpackedness noSourceStrictness))
+#else
+  NotStrict
+#endif
diff --git a/template-haskell-compat-v0208.cabal b/template-haskell-compat-v0208.cabal
new file mode 100644
--- /dev/null
+++ b/template-haskell-compat-v0208.cabal
@@ -0,0 +1,50 @@
+name:
+  template-haskell-compat-v0208
+version:
+  0.1
+category:
+  TemplateHaskell, Compatibility
+synopsis:
+  A backwards compatibility layer for Template Haskell newer than 2.8
+homepage:
+  https://github.com/nikita-volkov/template-haskell-compat-v0208 
+bug-reports:
+  https://github.com/nikita-volkov/template-haskell-compat-v0208/issues 
+author:
+  Nikita Volkov <nikita.y.volkov@mail.ru>
+maintainer:
+  Nikita Volkov <nikita.y.volkov@mail.ru>
+copyright:
+  (c) 2016, Nikita Volkov
+license:
+  MIT
+license-file:
+  LICENSE
+build-type:
+  Simple
+cabal-version:
+  >=1.10
+
+
+source-repository head
+  type:
+    git
+  location:
+    git://github.com/nikita-volkov/template-haskell-compat-v0208.git
+
+
+library
+  hs-source-dirs:
+    library
+  ghc-options:
+  default-extensions:
+    Arrows, BangPatterns, ConstraintKinds, DataKinds, DefaultSignatures, DeriveDataTypeable, DeriveFoldable, DeriveFunctor, DeriveGeneric, DeriveTraversable, EmptyDataDecls, FlexibleContexts, FlexibleInstances, FunctionalDependencies, GADTs, GeneralizedNewtypeDeriving, LambdaCase, LiberalTypeSynonyms, MagicHash, MultiParamTypeClasses, MultiWayIf, NoImplicitPrelude, NoMonomorphismRestriction, OverloadedStrings, PatternGuards, ParallelListComp, QuasiQuotes, RankNTypes, RecordWildCards, ScopedTypeVariables, StandaloneDeriving, TemplateHaskell, TupleSections, TypeFamilies, TypeOperators, UnboxedTuples
+  default-language:
+    Haskell2010
+  other-modules:
+  exposed-modules:
+    TemplateHaskell.Compat.V0208
+  build-depends:
+    template-haskell,
+    base-prelude >= 1 && < 2,
+    base >= 4.6 && < 5
