Skip to content

Commit dcc5c23

Browse files
committed
init
0 parents  commit dcc5c23

File tree

9 files changed

+220
-0
lines changed

9 files changed

+220
-0
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 2

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
dist
2+
dist-*
3+
cabal-dev
4+
*.o
5+
*.hi
6+
*.hie
7+
*.chi
8+
*.chs.h
9+
*.dyn_o
10+
*.dyn_hi
11+
.hpc
12+
.hsenv
13+
.cabal-sandbox/
14+
cabal.sandbox.config
15+
*.prof
16+
*.aux
17+
*.hp
18+
*.eventlog
19+
.stack-work/
20+
cabal.project.local
21+
cabal.project.local~
22+
.HTF/
23+
.ghc.environment.*

LICENSE

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2024, thelissimus
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
1. Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
2. Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
3. Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

app/Main.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module Main (main) where
2+
3+
main :: IO ()
4+
main = pure ()

clinic.cabal

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
cabal-version: 3.0
2+
name: clinic
3+
version: 0.0.0.0
4+
license: BSD-3-Clause
5+
license-file: LICENSE
6+
author: thelissimus
7+
maintainer: thelissimus@tuta.io
8+
build-type: Simple
9+
10+
common defaults
11+
default-language: GHC2021
12+
default-extensions:
13+
BlockArguments
14+
DerivingStrategies
15+
LambdaCase
16+
17+
common warnings
18+
ghc-options:
19+
-Wall -Wextra -Weverything -Wcompat -Wno-implicit-prelude
20+
-Wno-unsafe -Wno-missing-safe-haskell-mode
21+
-Wno-missing-local-signatures -Wno-missing-import-lists -haddock
22+
23+
library
24+
import: defaults, warnings
25+
exposed-modules: Clinic
26+
build-depends:
27+
, aeson
28+
, base ^>=4.17.2.1
29+
, esqueleto
30+
, monad-logger
31+
, mtl
32+
, optparse-applicative
33+
, persistent
34+
, persistent-postgresql
35+
, resource-pool
36+
, servant
37+
, servant-server
38+
, stm
39+
, text
40+
, time
41+
, transformers
42+
, unliftio
43+
, warp
44+
45+
hs-source-dirs: src
46+
47+
executable clinic
48+
import: defaults, warnings
49+
main-is: Main.hs
50+
build-depends:
51+
, base ^>=4.17.2.1
52+
, clinic
53+
54+
hs-source-dirs: app
55+
56+
test-suite clinic-test
57+
import: defaults, warnings
58+
type: exitcode-stdio-1.0
59+
hs-source-dirs: test
60+
main-is: Main.hs
61+
build-depends:
62+
, base ^>=4.17.2.1
63+
, clinic

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
inputs = {
3+
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
4+
flake-utils.url = "github:numtide/flake-utils";
5+
};
6+
7+
outputs = { self, nixpkgs, flake-utils }: flake-utils.lib.eachDefaultSystem (system:
8+
let
9+
pkgs = import nixpkgs { localSystem = { inherit system; }; };
10+
zlib = pkgs.zlib;
11+
postgresql = pkgs.postgresql;
12+
in
13+
{
14+
devShells.default = pkgs.mkShell ({
15+
buildInputs = [
16+
zlib
17+
postgresql
18+
];
19+
20+
shellHook = ''
21+
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${postgresql.lib}/lib
22+
'';
23+
});
24+
}
25+
);
26+
}

src/Clinic.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module Clinic (module Clinic) where

test/Main.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module Main (main) where
2+
3+
main :: IO ()
4+
main = putStrLn "Test suite not yet implemented."

0 commit comments

Comments
 (0)