Browse Source

Adds basic project skeleton

Abhinav Sarkar 1 year ago
parent
commit
7fe01ba070
8 changed files with 120 additions and 2 deletions
  1. 2
    1
      .gitignore
  2. 1
    1
      LICENSE
  3. 2
    0
      Setup.hs
  4. 6
    0
      app/Main.hs
  5. 36
    0
      package.yaml
  6. 6
    0
      src/Lib.hs
  7. 65
    0
      stack.yaml
  8. 2
    0
      test/Spec.hs

+ 2
- 1
.gitignore View File

@@ -19,4 +19,5 @@ cabal.sandbox.config
19 19
 .stack-work/
20 20
 cabal.project.local
21 21
 .HTF/
22
-
22
+hasdoku.cabal
23
+*~

+ 1
- 1
LICENSE View File

@@ -1,6 +1,6 @@
1 1
 MIT License
2 2
 
3
-Copyright (c) <year> <copyright holders>
3
+Copyright (c) 2018 Abhinav Sarkar
4 4
 
5 5
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6 6
 

+ 2
- 0
Setup.hs View File

@@ -0,0 +1,2 @@
1
+import Distribution.Simple
2
+main = defaultMain

+ 6
- 0
app/Main.hs View File

@@ -0,0 +1,6 @@
1
+module Main where
2
+
3
+import Lib
4
+
5
+main :: IO ()
6
+main = someFunc

+ 36
- 0
package.yaml View File

@@ -0,0 +1,36 @@
1
+name:                hasdoku
2
+version:             0.1.0
3
+github:              "abhin4v/hasdoku"
4
+license:             MIT
5
+author:              "Abhinav Sarkar"
6
+maintainer:          "abhinav@abhinavsarkar.net"
7
+copyright:           "2018 Abhinav Sarkar"
8
+
9
+extra-source-files:
10
+- README.md
11
+
12
+description:         Please see the README on GitHub at <https://github.com/abhin4v/hasdoku#readme>
13
+
14
+dependencies:
15
+- base >= 4.7 && < 5
16
+
17
+library:
18
+  source-dirs: src
19
+
20
+executables:
21
+  hasdoku:
22
+    main:                Main.hs
23
+    source-dirs:         app
24
+    ghc-options:
25
+    - -threaded
26
+    - -rtsopts
27
+    - -with-rtsopts=-N
28
+    dependencies:
29
+    - hasdoku
30
+
31
+tests:
32
+  hasdoku-test:
33
+    main:                Spec.hs
34
+    source-dirs:         test
35
+    dependencies:
36
+    - hasdoku

+ 6
- 0
src/Lib.hs View File

@@ -0,0 +1,6 @@
1
+module Lib
2
+    ( someFunc
3
+    ) where
4
+
5
+someFunc :: IO ()
6
+someFunc = putStrLn "someFunc"

+ 65
- 0
stack.yaml View File

@@ -0,0 +1,65 @@
1
+# This file was automatically generated by 'stack init'
2
+#
3
+# Some commonly used options have been documented as comments in this file.
4
+# For advanced use and comprehensive documentation of the format, please see:
5
+# https://docs.haskellstack.org/en/stable/yaml_configuration/
6
+
7
+# Resolver to choose a 'specific' stackage snapshot or a compiler version.
8
+# A snapshot resolver dictates the compiler version and the set of packages
9
+# to be used for project dependencies. For example:
10
+#
11
+# resolver: lts-3.5
12
+# resolver: nightly-2015-09-21
13
+# resolver: ghc-7.10.2
14
+# resolver: ghcjs-0.1.0_ghc-7.10.2
15
+#
16
+# The location of a snapshot can be provided as a file or url. Stack assumes
17
+# a snapshot provided as a file might change, whereas a url resource does not.
18
+#
19
+# resolver: ./custom-snapshot.yaml
20
+# resolver: https://example.com/snapshots/2018-01-01.yaml
21
+resolver: lts-11.13
22
+
23
+# User packages to be built.
24
+# Various formats can be used as shown in the example below.
25
+#
26
+# packages:
27
+# - some-directory
28
+# - https://example.com/foo/bar/baz-0.0.2.tar.gz
29
+# - location:
30
+#    git: https://github.com/commercialhaskell/stack.git
31
+#    commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
32
+# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a
33
+#  subdirs:
34
+#  - auto-update
35
+#  - wai
36
+packages:
37
+- .
38
+# Dependency packages to be pulled from upstream that are not in the resolver
39
+# using the same syntax as the packages field.
40
+# (e.g., acme-missiles-0.3)
41
+# extra-deps: []
42
+
43
+# Override default flag values for local packages and extra-deps
44
+# flags: {}
45
+
46
+# Extra package databases containing global packages
47
+# extra-package-dbs: []
48
+
49
+# Control whether we use the GHC we find on the path
50
+# system-ghc: true
51
+#
52
+# Require a specific version of stack, using version ranges
53
+# require-stack-version: -any # Default
54
+# require-stack-version: ">=1.7"
55
+#
56
+# Override the architecture used by stack, especially useful on Windows
57
+# arch: i386
58
+# arch: x86_64
59
+#
60
+# Extra directories used by stack for building
61
+# extra-include-dirs: [/path/to/dir]
62
+# extra-lib-dirs: [/path/to/dir]
63
+#
64
+# Allow a newer minor version of GHC than the snapshot specifies
65
+# compiler-check: newer-minor

+ 2
- 0
test/Spec.hs View File

@@ -0,0 +1,2 @@
1
+main :: IO ()
2
+main = putStrLn "Test suite not yet implemented"

Loading…
Cancel
Save