Skip to content

Commit

Permalink
version 0.1.0.3: database field to Mongo config added (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ozzzzz authored Apr 25, 2018
1 parent 7072b64 commit d61baab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

## [0.1.0.3] - 2018-04-25
### Added
- Field `database` in Mongo config.

## [0.1.0.2] - 2018-03-19
### Added
- Data for `bio-sources` library.
Expand Down
2 changes: 1 addition & 1 deletion bcd-config.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: bcd-config
version: 0.1.0.2
version: 0.1.0.3
description: Library to get config to different systems
homepage: https://github.com/biocad/bcd-config#readme
bug-reports: https://github.com/biocad/bcd-config/issues
Expand Down
6 changes: 4 additions & 2 deletions src/System/BCD/Config/Mongo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ module System.BCD.Config.Mongo
, FromJsonConfig (..)
) where

import Data.Aeson.Picker ((|--))
import System.BCD.Config (FromJsonConfig (..), getConfigText)
import Data.Aeson.Picker ((|--))
import System.BCD.Config (FromJsonConfig (..), getConfigText)

data MongoConfig = MongoConfig { _host :: String
, _port :: Int
, _user :: String
, _password :: String
, _database :: String
, _descr :: String
}
deriving (Show, Read, Eq)
Expand All @@ -24,4 +25,5 @@ instance FromJsonConfig MongoConfig where
(get "port")
(get "user")
(get "password")
(get "database")
(get "descr")

0 comments on commit d61baab

Please sign in to comment.