Fixes the module names
This commit is contained in:
parent
4e3ba59b9e
commit
1929eeee6b
@ -14,8 +14,8 @@ import Database.PostgreSQL as PG
|
||||
import Node.Express.Handler (Handler)
|
||||
import Node.Express.Request (getBody, getRouteParam)
|
||||
import Node.Express.Response (end, sendJson, setStatus)
|
||||
import SimpleServer.Persistence as P
|
||||
import SimpleServer.Types
|
||||
import SimpleService.Persistence as P
|
||||
import SimpleService.Types
|
||||
|
||||
getUser :: forall eff. PG.Pool -> Handler (postgreSQL :: PG.POSTGRESQL | eff)
|
||||
getUser pool = getRouteParam "id" >>= case _ of
|
||||
|
@ -1,4 +1,4 @@
|
||||
module SimpleServer.Persistence
|
||||
module SimpleService.Persistence
|
||||
( insertUser
|
||||
, findUser
|
||||
, updateUser
|
||||
@ -12,7 +12,7 @@ import Control.Monad.Aff (Aff)
|
||||
import Data.Array as Array
|
||||
import Data.Maybe (Maybe)
|
||||
import Database.PostgreSQL as PG
|
||||
import SimpleServer.Types (User(..), UserID)
|
||||
import SimpleService.Types (User(..), UserID)
|
||||
|
||||
insertUserQuery :: String
|
||||
insertUserQuery = "insert into users (id, name) values ($1, $2)"
|
||||
|
@ -1,4 +1,4 @@
|
||||
module SimpleServer.Types where
|
||||
module SimpleService.Types where
|
||||
|
||||
import Prelude
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user