diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2018, Metrix.AI
+
+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/cereal-uuid.cabal b/cereal-uuid.cabal
new file mode 100644
--- /dev/null
+++ b/cereal-uuid.cabal
@@ -0,0 +1,43 @@
+name:
+  cereal-uuid
+version:
+  0.1
+synopsis:
+  Integration of "cereal" and "uuid"
+homepage:
+  https://github.com/metrix-ai/cereal-uuid 
+bug-reports:
+  https://github.com/metrix-ai/cereal-uuid/issues 
+author:
+  Nikita Volkov <nikita.y.volkov@mail.ru>
+maintainer:
+  Metrix.AI Ninjas <ninjas@metrix.ai>
+copyright:
+  (c) 2018, Metrix.AI
+license:
+  MIT
+license-file:
+  LICENSE
+build-type:
+  Simple
+cabal-version:
+  >=1.10
+
+library
+  hs-source-dirs:
+    library
+  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
+  exposed-modules:
+    Cereal.Uuid.Serialize
+    Cereal.Uuid.Put
+    Cereal.Uuid.Get
+  other-modules:
+    Cereal.Uuid.Prelude
+  build-depends:
+    base <5,
+    bytestring >=0.10 && <0.11,
+    cereal >=0.5.5 && <0.6,
+    uuid >=1.3 && <2
diff --git a/library/Cereal/Uuid/Get.hs b/library/Cereal/Uuid/Get.hs
new file mode 100644
--- /dev/null
+++ b/library/Cereal/Uuid/Get.hs
@@ -0,0 +1,8 @@
+module Cereal.Uuid.Get
+where
+
+import Cereal.Uuid.Prelude
+
+
+uuid :: Get Word32 -> Get UUID
+uuid word32 = fromWords <$> word32 <*> word32 <*> word32 <*> word32
diff --git a/library/Cereal/Uuid/Prelude.hs b/library/Cereal/Uuid/Prelude.hs
new file mode 100644
--- /dev/null
+++ b/library/Cereal/Uuid/Prelude.hs
@@ -0,0 +1,80 @@
+module Cereal.Uuid.Prelude
+(
+  module Exports,
+)
+where
+
+
+-- base
+-------------------------
+import Control.Applicative as Exports
+import Control.Arrow as Exports
+import Control.Category as Exports
+import Control.Concurrent as Exports
+import Control.Exception as Exports
+import Control.Monad as Exports hiding (mapM_, sequence_, forM_, msum, mapM, sequence, forM)
+import Control.Monad.IO.Class as Exports
+import Control.Monad.Fix as Exports hiding (fix)
+import Control.Monad.ST as Exports
+import Data.Bits as Exports
+import Data.Bool as Exports
+import Data.Char as Exports
+import Data.Coerce as Exports
+import Data.Complex as Exports
+import Data.Data as Exports
+import Data.Dynamic as Exports
+import Data.Either as Exports
+import Data.Fixed as Exports
+import Data.Foldable as Exports
+import Data.Function as Exports hiding (id, (.))
+import Data.Functor as Exports
+import Data.Functor.Identity as Exports
+import Data.Int as Exports
+import Data.IORef as Exports
+import Data.Ix as Exports
+import Data.List as Exports hiding (sortOn, isSubsequenceOf, uncons, concat, foldr, foldl1, maximum, minimum, product, sum, all, and, any, concatMap, elem, foldl, foldr1, notElem, or, find, maximumBy, minimumBy, mapAccumL, mapAccumR, foldl')
+import Data.Maybe as Exports
+import Data.Monoid as Exports hiding (Last(..), First(..), (<>))
+import Data.Ord as Exports
+import Data.Proxy as Exports
+import Data.Ratio as Exports
+import Data.Semigroup as Exports
+import Data.STRef as Exports
+import Data.String as Exports
+import Data.Traversable as Exports
+import Data.Tuple as Exports
+import Data.Unique as Exports
+import Data.Version as Exports
+import Data.Word as Exports
+import Debug.Trace as Exports
+import Foreign.ForeignPtr as Exports
+import Foreign.Ptr as Exports
+import Foreign.StablePtr as Exports
+import Foreign.Storable as Exports hiding (sizeOf, alignment)
+import GHC.Conc as Exports hiding (withMVar, threadWaitWriteSTM, threadWaitWrite, threadWaitReadSTM, threadWaitRead)
+import GHC.Exts as Exports (lazy, inline, sortWith, groupWith)
+import GHC.Generics as Exports (Generic)
+import GHC.IO.Exception as Exports
+import Numeric as Exports
+import Prelude as Exports hiding (concat, foldr, mapM_, sequence_, foldl1, maximum, minimum, product, sum, all, and, any, concatMap, elem, foldl, foldr1, notElem, or, mapM, sequence, id, (.))
+import System.Environment as Exports
+import System.Exit as Exports
+import System.IO as Exports
+import System.IO.Error as Exports
+import System.IO.Unsafe as Exports
+import System.Mem as Exports
+import System.Mem.StableName as Exports
+import System.Timeout as Exports
+import Text.ParserCombinators.ReadP as Exports (ReadP, ReadS, readP_to_S, readS_to_P)
+import Text.ParserCombinators.ReadPrec as Exports (ReadPrec, readPrec_to_P, readP_to_Prec, readPrec_to_S, readS_to_Prec)
+import Text.Printf as Exports (printf, hPrintf)
+import Text.Read as Exports (Read(..), readMaybe, readEither)
+import Unsafe.Coerce as Exports
+
+-- cereal
+-------------------------
+import Data.Serialize as Exports
+
+-- uuid
+-------------------------
+import Data.UUID as Exports (UUID, fromWords, toWords)
diff --git a/library/Cereal/Uuid/Put.hs b/library/Cereal/Uuid/Put.hs
new file mode 100644
--- /dev/null
+++ b/library/Cereal/Uuid/Put.hs
@@ -0,0 +1,9 @@
+module Cereal.Uuid.Put
+where
+
+import Cereal.Uuid.Prelude
+
+
+uuid :: Putter Word32 -> Putter UUID
+uuid word32 x = case toWords x of
+  (a, b, c, d) -> word32 a <> word32 b <> word32 c <> word32 d
diff --git a/library/Cereal/Uuid/Serialize.hs b/library/Cereal/Uuid/Serialize.hs
new file mode 100644
--- /dev/null
+++ b/library/Cereal/Uuid/Serialize.hs
@@ -0,0 +1,14 @@
+{-|
+Orphan instance of "Serialize".
+-}
+module Cereal.Uuid.Serialize
+where
+
+import Cereal.Uuid.Prelude
+import qualified Cereal.Uuid.Put as Put
+import qualified Cereal.Uuid.Get as Get
+
+
+instance Serialize UUID where
+  put = Put.uuid put
+  get = Get.uuid get
