Skip to content

Commit

Permalink
Expose two modules as a library (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
adinapoli authored Oct 23, 2023
1 parent a1199fb commit 75ced21
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions profiteur.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,36 @@ Source-repository head
Type: git
Location: git://github.com/jaspervdj/profiteur.git

Library
Default-language: Haskell2010
Ghc-options: -Wall
Hs-source-dirs: src
Exposed-Modules:
Profiteur.Core
Profiteur.Parser
Other-modules:
Profiteur.DataFile
Profiteur.DataFile.Internal
Paths_profiteur
Build-depends:
aeson >= 0.6 && < 2.2,
base >= 4.8 && < 5,
bytestring >= 0.9 && < 0.12,
containers >= 0.5 && < 0.7,
ghc-prof >= 1.3 && < 1.5,
js-jquery >= 3.1 && < 3.4,
scientific >= 0.3 && < 0.4,
text >= 0.11 && < 2.1,
unordered-containers >= 0.2 && < 0.3,
vector >= 0.10 && < 0.13
if flag(embed-data-files)
Hs-source-dirs: src/embed
Build-depends:
file-embed >= 0.0.10 && < 0.0.12,
template-haskell
else
Hs-source-dirs: src/noembed

Executable profiteur
Default-language: Haskell2010
Ghc-options: -Wall
Expand Down
1 change: 1 addition & 0 deletions src/Profiteur/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE OverloadedStrings #-}
module Profiteur.Parser
( decode
, profileToCostCentre
) where


Expand Down

0 comments on commit 75ced21

Please sign in to comment.