Skip to content

Commit 0935a8c

Browse files
committed
use cabal instead of Makefile
1 parent 11078db commit 0935a8c

7 files changed

+80
-4
lines changed

.editorconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@ charset = utf-8
1313
indent_style = space
1414
indent_size = 2
1515

16-
[Makefile]
17-
indent_style = tab
16+
[*.cabal]
17+
indent_style = space
18+
indent_size = 2

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ cabal.sandbox.config
1515
*.aux
1616
*.hp
1717

18-
.idea
19-
bin/
18+
.idea

LearningHaskellDataAnalysis.cabal

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
-- Initial LearningHaskellDataAnalysis.cabal generated by cabal init. For
2+
-- further documentation, see http://haskell.org/cabal/users-guide/
3+
4+
-- The name of the package.
5+
name: LearningHaskellDataAnalysis
6+
7+
-- The package version. See the Haskell package versioning policy (PVP)
8+
-- for standards guiding when and how versions should be incremented.
9+
-- http://www.haskell.org/haskellwiki/Package_versioning_policy
10+
-- PVP summary: +-+------- breaking API changes
11+
-- | | +----- non-breaking API additions
12+
-- | | | +--- code changes with no API change
13+
version: 0.1.0.0
14+
15+
-- A short (one-line) description of the package.
16+
-- synopsis:
17+
18+
-- A longer description of the package.
19+
-- description:
20+
21+
-- URL for the project homepage or repository.
22+
homepage: https://github.com/tomi77/LearningHaskellDataAnalysis
23+
24+
-- The license under which the package is released.
25+
-- license:
26+
27+
-- The file containing the license text.
28+
license-file: LICENSE
29+
30+
-- The package author(s).
31+
author: Tomasz Jakub Rup
32+
33+
-- An email address to which users can send suggestions, bug reports, and
34+
-- patches.
35+
maintainer: tomasz.rup@gmail.com
36+
37+
-- A copyright notice.
38+
-- copyright:
39+
40+
-- category:
41+
42+
build-type: Simple
43+
44+
-- Extra files to be distributed with the package, such as examples or a
45+
-- README.
46+
-- extra-source-files:
47+
48+
-- Constraint on the version of Cabal needed to build this package.
49+
cabal-version: >=1.10
50+
51+
52+
library
53+
build-depends: base >=4.8 && <4.9
54+
hs-source-dirs: src
55+
exposed-modules: LearningHaskellDataAnalysis01 LearningHaskellDataAnalysis02
56+
57+
executable median
58+
-- .hs or .lhs file containing the Main module.
59+
main-is: median.hs
60+
61+
-- Modules included in this executable, other than Main.
62+
other-modules: LearningHaskellDataAnalysis01
63+
64+
-- LANGUAGE extensions used by modules in this package.
65+
-- other-extensions:
66+
67+
-- Other library packages from which modules are imported.
68+
build-depends: base >=4.8 && <4.9
69+
70+
-- Directories containing source files.
71+
hs-source-dirs: src
72+
73+
-- Base language which the package is written in.
74+
default-language: Haskell2010

Setup.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import Distribution.Simple
2+
main = defaultMain

median.hs renamed to src/median.hs

File renamed without changes.

0 commit comments

Comments
 (0)