diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,30 @@
+Copyright Li Meng Jun (c) 2017
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+
+    * Redistributions in binary form must reproduce the above
+      copyright notice, this list of conditions and the following
+      disclaimer in the documentation and/or other materials provided
+      with the distribution.
+
+    * Neither the name of Li Meng Jun nor the names of other
+      contributors may be used to endorse or promote products derived
+      from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/scotty-haxl.cabal b/scotty-haxl.cabal
new file mode 100644
--- /dev/null
+++ b/scotty-haxl.cabal
@@ -0,0 +1,28 @@
+name:                scotty-haxl
+version:             0.1.0.0
+synopsis:            Combine scotty and haxl
+description:         Combine scotty and haxl. ActionH, ScottyH
+homepage:            https://github.com/Lupino/yuntan-common/tree/scotty-haxl#readme
+license:             BSD3
+license-file:        LICENSE
+author:              Li Meng Jun
+maintainer:          lmjubuntu@gmail.com
+copyright:           MIT
+category:            Web,Scotty,Concurrency
+build-type:          Simple
+-- extra-source-files:
+cabal-version:       >=1.10
+
+
+library
+  hs-source-dirs:      src
+  exposed-modules:     Web.Scotty.Haxl
+  build-depends:       base >= 4.7 && < 5
+                     , haxl
+                     , scotty
+                     , text
+  default-language:    Haskell2010
+
+source-repository head
+  type:     git
+  location: https://github.com/Lupino/yuntan-common
diff --git a/src/Web/Scotty/Haxl.hs b/src/Web/Scotty/Haxl.hs
new file mode 100644
--- /dev/null
+++ b/src/Web/Scotty/Haxl.hs
@@ -0,0 +1,18 @@
+module Web.Scotty.Haxl
+  ( ActionH
+  , ScottyH
+  ) where
+
+import           Control.Monad.IO.Class (MonadIO (..))
+import           Haxl.Core              (GenHaxl)
+import           Haxl.Core.Monad        (unsafeLiftIO)
+import           Web.Scotty.Trans       (ActionT, ScottyT)
+
+import qualified Data.Text.Lazy         as LT (Text)
+
+type ActionH u w b = ActionT LT.Text (GenHaxl u w) b
+type ScottyH u w b = ScottyT LT.Text (GenHaxl u w) b
+
+instance MonadIO (GenHaxl u w) where
+  liftIO = unsafeLiftIO
+
