Skip to content

Commit

Permalink
Remove config folder
Browse files Browse the repository at this point in the history
Signed-off-by: Sascha Grunert <sgrunert@suse.com>
  • Loading branch information
saschagrunert committed Jun 24, 2019
1 parent 65e601e commit 3e5e413
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 33 deletions.
20 changes: 0 additions & 20 deletions config/models

This file was deleted.

1 change: 1 addition & 0 deletions floskell.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"GeneralizedNewtypeDeriving",
"MultiParamTypeClasses",
"OverloadedStrings",
"QuasiQuotes",
"TemplateHaskell",
"TypeFamilies"
],
Expand Down
1 change: 1 addition & 0 deletions package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ default-extensions:
- GeneralizedNewtypeDeriving
- MultiParamTypeClasses
- OverloadedStrings
- QuasiQuotes
- TemplateHaskell
- TypeFamilies

Expand Down
8 changes: 4 additions & 4 deletions performabot.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
-- hash: 98e3e7b597afb8f01a3adcd57ee89ff5fc280f44f10f4ed176b522ed0470dd76
-- hash: 6dd0c8bb11e5e152228978bd9c385e7a0c7d3f0c96a4d034f60166c3e020325a

name: performabot
version: 0.1.0
Expand Down Expand Up @@ -40,7 +40,7 @@ library
Paths_performabot
hs-source-dirs:
src
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TemplateHaskell TypeFamilies
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings QuasiQuotes TemplateHaskell TypeFamilies
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-unsafe
build-depends:
aeson
Expand Down Expand Up @@ -70,7 +70,7 @@ executable performabot
Paths_performabot
hs-source-dirs:
app
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TemplateHaskell TypeFamilies
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings QuasiQuotes TemplateHaskell TypeFamilies
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-unsafe -rtsopts -threaded -with-rtsopts=-N
build-depends:
base
Expand All @@ -90,7 +90,7 @@ test-suite performabot-test
Paths_performabot
hs-source-dirs:
test
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings TemplateHaskell TypeFamilies
default-extensions: GADTs GeneralizedNewtypeDeriving MultiParamTypeClasses OverloadedStrings QuasiQuotes TemplateHaskell TypeFamilies
ghc-options: -Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude -Wno-missed-specialisations -Wno-missing-local-signatures -Wno-monomorphism-restriction -Wno-unsafe -rtsopts -threaded -with-rtsopts=-N
build-depends:
aeson
Expand Down
33 changes: 26 additions & 7 deletions src/Model.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,37 @@ module Model

import Data.Aeson.TH
( defaultOptions, deriveJSON, fieldLabelModifier )
import Data.Text ( Text )
import Data.Time ( UTCTime )
import Data.Text ( Text )
import Data.Time ( UTCTime )

import Database.Persist.Quasi ( lowerCaseSettings )
import Database.Persist.TH
( mkMigrate, mkPersist, mpsGenerateLenses, persistFileWith
, share, sqlSettings )
import Database.Persist.TH ( mkMigrate, mkPersist, mpsGenerateLenses
, persistLowerCase, share, sqlSettings )

share [ mkPersist sqlSettings { mpsGenerateLenses = True }
, mkMigrate "migrateAll"
]
$(persistFileWith lowerCaseSettings "config/models")
[persistLowerCase|
Test
benchmarks [BenchmarkId]
environment EnvironmentId
time UTCTime
deriving Show

Environment
commit Text
pullRequest Text
repoSlug Text
token Text
deriving Show

Benchmark
average Double
derivation Double
name Text
samples Int
unit Text
deriving Show
|]

type Entry = (Environment, [Benchmark])

Expand Down
4 changes: 2 additions & 2 deletions stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
nix:
enable: true
pure: true
shell-file: nix/shell.nix
resolver: lts-13.25
packages: [zlib.dev, zlib.out]
resolver: lts-13.26
packages:
- .

0 comments on commit 3e5e413

Please sign in to comment.