diff --git a/LICENSE b/LICENSE
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,12 @@
+Copyright (c) 2014, Evgeniy Kurbatskiy
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+
+2. 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.
+
+3. Neither the name of the copyright holder nor the names of its 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 HOLDER 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/Setup.hs b/Setup.hs
new file mode 100644
--- /dev/null
+++ b/Setup.hs
@@ -0,0 +1,10 @@
+import Distribution.Simple
+main :: IO ()
+main = defaultMain
+
+-- Although this looks like the Simple build type, it is in fact vital that
+-- we use this Setup.hs because it'll get compiled against the local copy
+-- of the Cabal lib, thus enabling Cabal to bootstrap itself without relying
+-- on any previous installation. This also means we can use any new features
+-- immediately because we never have to worry about building Cabal with an
+-- older version of itself.
diff --git a/remote-debugger.cabal b/remote-debugger.cabal
new file mode 100644
--- /dev/null
+++ b/remote-debugger.cabal
@@ -0,0 +1,26 @@
+name:                remote-debugger
+version:             0.1.0
+description:         Wraper to GHC debugger API allowing debugging throught socket. Used in haskell-idea-plugin.
+license:             BSD3
+license-file:        LICENSE
+maintainer:          kurbatsky@gmail.com
+build-type:          Simple
+homepage:            https://github.com/octomarat/HaskellDebugger
+bug-reports:         https://github.com/octomarat/HaskellDebugger/issues
+category:            Debug
+synopsis:            Interface to ghci debugger
+cabal-version:       >=1.8
+
+executable remote-debugger
+    main-is:            Main.hs
+    hs-source-dirs:     src
+    build-depends:      base >= 3 && <5,
+                        ghc,
+                        ghc-paths,
+                        array,
+                        network,
+                        json
+
+source-repository head
+    type:     git
+    location: git@github.com:octomarat/HaskellDebugger.git
diff --git a/src/Main.hs b/src/Main.hs
new file mode 100644
--- /dev/null
+++ b/src/Main.hs
@@ -0,0 +1,6 @@
+module Main where
+
+import DebuggerImpl (defaultRunGhc, startCommandLine, execCommands, printAllBreaksInfo)
+
+main :: IO ()
+main = defaultRunGhc startCommandLine
