Commits

Andy Gocke committed 82323e4

Initial commit

Comments (0)

Files changed (4)

+cabal-dev
+dist

backend/editor-backend.hs

+{-# LANGUAGE OverloadedStrings #-}
+
+module Main where
+
+import qualified Network.Wai as Wai (responseLBS)
+import qualified Network.HTTP.Types as HttpTypes (status200)
+import qualified Network.Wai.Handler.Warp as Warp (run)
+
+application _ = return $
+  Wai.responseLBS HttpTypes.status200 [("Content-Type", "text/plain")] "Hello World"
+
+main = Warp.run 3000 application
+name:          editor
+version:       0.0
+synopsis:      An editor
+author:        Andy Gocke
+cabal-version: >= 1.10
+build-type:    Simple
+
+executable editor-backend
+  build-depends:  base,
+                  http-types,
+                  protocol-buffers,
+                  QuickCheck,
+                  wai,
+                  warp
+  main-is:        editor-backend.hs
+  hs-source-dirs: backend
+
+  Default-Language: Haskell2010

protocols/shell-commands.proto

+
+message CommandRequest {
+  enum CommandType {
+    LS = 0;
+  }
+  required CommandType cmd_type = 1;
+}
+
+message CommandResponse {
+  required int32 return_code;
+}