Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

bug fix + bird flight notice on app start ("bird fly")

  • Loading branch information...
commit 54ccf1f0a30e0f23d0c23470593dac6cce3f18da 1 parent a5e1bb9
@moonmaster9000 authored
Showing with 5 additions and 3 deletions.
  1. +4 −2 bin/bird.hs
  2. +1 −1  bird.cabal
View
6 bin/bird.hs
@@ -65,7 +65,7 @@ routeFile a = "get [] = body \"Hello, Bird!\""
configFile a =
"module " ++ a ++ ".Config where\n\n" ++
"import Bird\n\n" ++
- "config :: BirdConfig" ++
+ "config :: BirdConfig\n" ++
"config = def\n"
mainFile a =
@@ -98,7 +98,9 @@ mainFile a =
" Bird.PUT -> put $ path r\n" ++
" Bird.DELETE -> delete $ path r\n\n" ++
- "main = run app\n"
+ "main = do\n" ++
+ " putStrLn \"A bird was just spotted in flight at http://localhost:3000\"\n" ++
+ " run app\n"
split :: Char -> String -> [String]
split d s
View
2  bird.cabal
@@ -1,5 +1,5 @@
Name: bird
-Version: 0.0.15
+Version: 0.0.16
Build-type: Simple
Synopsis: A simple, sinatra-inspired web framework.
Description: Bird is a hack-compatible framework for simple websites.
Please sign in to comment.
Something went wrong with that request. Please try again.