diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 Thomas Letan
+
+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/hakyll-ogmarkup.cabal b/hakyll-ogmarkup.cabal
new file mode 100644
--- /dev/null
+++ b/hakyll-ogmarkup.cabal
@@ -0,0 +1,26 @@
+name:                hakyll-ogmarkup
+version:             1.0
+synopsis:            Integrate ogmarkup document with Hakyll
+description:         Please see README.md
+homepage:            https://github.com/ogma-project/hakyll-ogmarkup#readme
+license:             MIT
+license-file:        LICENSE
+author:              Thomas Letan
+maintainer:          contact@thomasletan.fr
+copyright:           2016 Thomas Letan
+category:            Web
+build-type:          Simple
+-- extra-source-files:
+cabal-version:       >=1.10
+
+library
+  hs-source-dirs:      src
+  exposed-modules:     Hakyll.Ogmarkup
+  build-depends:       base >= 4.7 && < 5
+                     , hakyll == 4.8.*
+                     , ogmarkup >= 2.1 && < 3
+  default-language:    Haskell2010
+
+source-repository head
+  type:     git
+  location: https://github.com/ogma-project/hakyll-ogmarkup
diff --git a/src/Hakyll/Ogmarkup.hs b/src/Hakyll/Ogmarkup.hs
new file mode 100644
--- /dev/null
+++ b/src/Hakyll/Ogmarkup.hs
@@ -0,0 +1,18 @@
+{-# LANGUAGE TypeSynonymInstances #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE MultiParamTypeClasses #-}
+
+module Hakyll.Ogmarkup
+  ( ogmarkupCompile
+  ) where
+
+import Text.Ogmarkup
+import Hakyll
+
+-- | A Hakyll compiler used to build an output data which is determined by
+-- the ogmarkup configuration passed as argument.
+ogmarkupCompile :: (GenConf c o)
+                => c
+                -> Compiler (Item o)
+ogmarkupCompile conf = do getResourceBody >>= withItemBody (return . ogmarkup' ByLine conf)
+    where ogmarkup' strat = flip $ ogmarkup strat
