Commit fdd5220c authored by Ibnu Daru Aji's avatar Ibnu Daru Aji

init commit.

parents
((haskell-mode . ((haskell-indent-spaces . 4)
(haskell-process-use-ghci . t)))
(hamlet-mode . ((hamlet/basic-offset . 4)
(haskell-process-use-ghci . t))))
dist*
static/tmp/
static/combined/
config/client_session_key.aes
*.hi
*.o
*.sqlite3
*.sqlite3-shm
*.sqlite3-wal
.hsenv*
cabal-dev/
.stack-work/
yesod-devel/
.cabal-sandbox
cabal.sandbox.config
.DS_Store
*.swp
*.keter
*~
\#*
TAGS
Cirkeltrek.cabal
\ No newline at end of file
-- This file has been generated from package.yaml by hpack version 0.27.0.
--
-- see: https://github.com/sol/hpack
--
-- hash: b4baa8144520c126d4e5943935b64fb2042530ae57acc39849371b5063014adf
name: Cirkeltrek
version: 0.0.0
build-type: Simple
cabal-version: >= 1.10
library
exposed-modules:
Application
Foundation
Home
other-modules:
Paths_Cirkeltrek
hs-source-dirs:
src
build-depends:
base
, classy-prelude
, classy-prelude-yesod
, esqueleto
, yesod-auth
, yesod-auth-hashdb
, yesod-core
, yesod-form
default-language: Haskell2010
executable Cirkeltrek
main-is: Main.hs
other-modules:
Paths_Cirkeltrek
hs-source-dirs:
app
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
Cirkeltrek
, base
, classy-prelude
, classy-prelude-yesod
, esqueleto
, yesod-auth
, yesod-auth-hashdb
, yesod-core
, yesod-form
default-language: Haskell2010
> *Note: This project was generated from the `yesod-minimal` scaffolding, and does not support features like `yesod devel`. If you want these features, use the `yesod-simple` stack template.*
## Haskell Setup
1. If you haven't already, [install Stack](https://haskell-lang.org/get-started)
* On POSIX systems, this is usually `curl -sSL https://get.haskellstack.org/ | sh`
2. Install GHC: `stack setup`
3. Build libraries: `stack build`
## Development
Start a development server with:
```
stack build --exec test-minimal
```
## Documentation
* Read the [Yesod Book](https://www.yesodweb.com/book) online for free
* Check [Stackage](http://stackage.org/) for documentation on the packages in your LTS Haskell version, or [search it using Hoogle](https://www.stackage.org/lts/hoogle?q=). Tip: Your LTS version is in your `stack.yaml` file.
* For local documentation, use:
* `stack haddock --open` to generate Haddock documentation for your dependencies, and open that documentation in a browser
* `stack hoogle <function, module or type signature>` to generate a Hoogle database and search for your query
* The [Yesod cookbook](https://github.com/yesodweb/yesod-cookbook) has sample code for various needs
## Getting Help
* Ask questions on [Stack Overflow, using the Yesod or Haskell tags](https://stackoverflow.com/questions/tagged/yesod+haskell)
* Ask the [Yesod Google Group](https://groups.google.com/forum/#!forum/yesodweb)
* There are several chatrooms you can ask for help:
* For IRC, try Freenode#yesod and Freenode#haskell
* [Functional Programming Slack](https://fpchat-invite.herokuapp.com/), in the #haskell, #haskell-beginners, or #yesod channels.
import Application () -- for YesodDispatch instance
import Foundation
import Yesod.Core
main :: IO ()
main = warp 3000 App
name: Cirkeltrek
version: "0.0.0"
dependencies:
- base
- classy-prelude
- classy-prelude-yesod
- esqueleto
- yesod-auth
- yesod-auth-hashdb
- yesod-core
- yesod-form
# The library contains all of our application code. The executable
# defined below is just a thin wrapper.
library:
source-dirs: src
# Runnable executable for our application
executables:
Cirkeltrek:
main: Main.hs
source-dirs: app
ghc-options:
- -threaded
- -rtsopts
- -with-rtsopts=-N
dependencies:
- Cirkeltrek
/ HomeR GET
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE ViewPatterns #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Application where
import Foundation
import Yesod.Core
import Home
mkYesodDispatch "App" resourcesApp
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE ViewPatterns #-}
module Foundation where
import Yesod.Core
data App = App
mkYesodData "App" $(parseRoutesFile "routes")
instance Yesod App
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE QuasiQuotes #-}
module Home where
import Foundation
import Yesod.Core
getHomeR :: Handler Html
getHomeR =
defaultLayout $ do
setTitle "Nice"
[whamlet|
<h4> Nice.
|]
flags: {}
packages:
- .
extra-deps:
- git: https://github.com/bitemyapp/esqueleto
commit: b81e0d951e510ebffca03c5a58658ad884cc6fbd
resolver: lts-11.3
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment