Skip to content

Commit b133701

Browse files
committed
Make stack structure
1 parent 14b3bda commit b133701

13 files changed

+206
-6
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.stack-work/
2+
*~
3+
14
dist
25
dist-*
36
cabal-dev

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

hidato.hs renamed to app/Main.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
module Main where
2+
13
import Structures
24
import Algorithms
35

compile.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ghc -o bin/program hidato.hs structures/structures.hs algorithms/algorithms.hs
1+
ghc -o bin/program app/Main.hs src/Structures.hs src/Algorithms.hs

hidato.cabal

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
cabal-version: 1.12
2+
3+
-- This file has been generated from package.yaml by hpack version 0.33.0.
4+
--
5+
-- see: https://github.com/sol/hpack
6+
--
7+
-- hash: 1adf0231ee1c9c3fa35bb688d8f64a8891b7f4ed5a43a7f6bad46e2a7c24f6c1
8+
9+
name: hidato
10+
version: 0.1.0.0
11+
description: Please see the README on GitHub at <https://https://github.com/codestrange/declarative-programing-hidato-project#readme>
12+
homepage: https://github.com/codestrange/declarative-programing-hidato-project#readme
13+
bug-reports: https://github.com/codestrange/declarative-programing-hidato-project/issues
14+
author: CodeStrange
15+
maintainer: [email protected]
16+
copyright: 2020 CodeStrange
17+
license: MIT
18+
license-file: LICENSE
19+
build-type: Simple
20+
extra-source-files:
21+
README.md
22+
23+
source-repository head
24+
type: git
25+
location: https://github.com/codestrange/declarative-programing-hidato-project
26+
27+
library
28+
exposed-modules:
29+
Algorithms
30+
Structures
31+
other-modules:
32+
Paths_hidato
33+
hs-source-dirs:
34+
src
35+
build-depends:
36+
base >=4.7 && <5
37+
, containers
38+
default-language: Haskell2010
39+
40+
executable hidato-exe
41+
main-is: Main.hs
42+
other-modules:
43+
Paths_hidato
44+
hs-source-dirs:
45+
app
46+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
47+
build-depends:
48+
base >=4.7 && <5
49+
, containers
50+
, hidato
51+
default-language: Haskell2010
52+
53+
test-suite hidato-test
54+
type: exitcode-stdio-1.0
55+
main-is: Spec.hs
56+
other-modules:
57+
Paths_hidato
58+
hs-source-dirs:
59+
test
60+
ghc-options: -threaded -rtsopts -with-rtsopts=-N
61+
build-depends:
62+
base >=4.7 && <5
63+
, containers
64+
, hidato
65+
default-language: Haskell2010

makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
.DEFAULT_GOAL=help
22

3-
runi: hidato.hs structures/structures.hs algorithms/algorithms.hs ## Ejecutar el programa en el interprete
4-
ghci hidato.hs structures/structures.hs algorithms/algorithms.hs
3+
runi: app/Main.hs src/Structures.hs src/Algorithms.hs ## Ejecutar el programa en el interprete
4+
ghci app/Main.hs src/Structures.hs src/Algorithms.hs
55

6-
compile: hidato.hs structures/structures.hs algorithms/algorithms.hs ## Compilar el programa
7-
ghc -o bin/program hidato.hs structures/structures.hs algorithms/algorithms.hs
6+
compile: app/Main.hs src/Structures.hs src/Algorithms.hs ## Compilar el programa
7+
ghc -o bin/program app/Main.hs src/Structures.hs src/Algorithms.hs
88

99
run: compile bin/program ## Compilar y ejucutar el programa
1010
./bin/program

package.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: hidato
2+
version: 0.1.0.0
3+
github: "codestrange/declarative-programing-hidato-project"
4+
license: MIT
5+
author: "CodeStrange"
6+
maintainer: "[email protected]"
7+
copyright: "2020 CodeStrange"
8+
9+
extra-source-files:
10+
- README.md
11+
12+
# Metadata used when publishing your package
13+
# synopsis: Short description of your package
14+
# category: Web
15+
16+
# To avoid duplicated efforts in documentation and dealing with the
17+
# complications of embedding Haddock markup inside cabal files, it is
18+
# common to point users to the README.md file.
19+
description: Please see the README on GitHub at <https://https://github.com/codestrange/declarative-programing-hidato-project#readme>
20+
21+
dependencies:
22+
- base >= 4.7 && < 5
23+
- containers
24+
25+
library:
26+
source-dirs: src
27+
28+
executables:
29+
hidato-exe:
30+
main: Main.hs
31+
source-dirs: app
32+
ghc-options:
33+
- -threaded
34+
- -rtsopts
35+
- -with-rtsopts=-N
36+
dependencies:
37+
- hidato
38+
39+
tests:
40+
hidato-test:
41+
main: Spec.hs
42+
source-dirs: test
43+
ghc-options:
44+
- -threaded
45+
- -rtsopts
46+
- -with-rtsopts=-N
47+
dependencies:
48+
- hidato

runi.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ghci hidato.hs structures/structures.hs algorithms/algorithms.hs
1+
ghci app/Main.hs src/Structures.hs src/Algorithms.hs
File renamed without changes.
File renamed without changes.

stack.yaml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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+
#
15+
# The location of a snapshot can be provided as a file or url. Stack assumes
16+
# a snapshot provided as a file might change, whereas a url resource does not.
17+
#
18+
# resolver: ./custom-snapshot.yaml
19+
# resolver: https://example.com/snapshots/2018-01-01.yaml
20+
resolver: lts-16.19
21+
22+
# User packages to be built.
23+
# Various formats can be used as shown in the example below.
24+
#
25+
# packages:
26+
# - some-directory
27+
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
28+
# subdirs:
29+
# - auto-update
30+
# - wai
31+
packages:
32+
- .
33+
# Dependency packages to be pulled from upstream that are not in the resolver.
34+
# These entries can reference officially published versions as well as
35+
# forks / in-progress versions pinned to a git hash. For example:
36+
#
37+
# extra-deps:
38+
# - acme-missiles-0.3
39+
# - git: https://github.com/commercialhaskell/stack.git
40+
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
41+
#
42+
# extra-deps: []
43+
44+
# Override default flag values for local packages and extra-deps
45+
# flags: {}
46+
47+
# Extra package databases containing global packages
48+
# extra-package-dbs: []
49+
50+
# Control whether we use the GHC we find on the path
51+
# system-ghc: true
52+
#
53+
# Require a specific version of stack, using version ranges
54+
# require-stack-version: -any # Default
55+
# require-stack-version: ">=2.3"
56+
#
57+
# Override the architecture used by stack, especially useful on Windows
58+
# arch: i386
59+
# arch: x86_64
60+
#
61+
# Extra directories used by stack for building
62+
# extra-include-dirs: [/path/to/dir]
63+
# extra-lib-dirs: [/path/to/dir]
64+
#
65+
# Allow a newer minor version of GHC than the snapshot specifies
66+
# compiler-check: newer-minor

stack.yaml.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This file was autogenerated by Stack.
2+
# You should not edit this file by hand.
3+
# For more information, please see the documentation at:
4+
# https://docs.haskellstack.org/en/stable/lock_files
5+
6+
packages: []
7+
snapshots:
8+
- completed:
9+
size: 532177
10+
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/19.yaml
11+
sha256: d2b828ecf50386841d0c5700b58d38566992e10d63a062af497ab29ab031faa1
12+
original: lts-16.19

test/Spec.hs

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

0 commit comments

Comments
 (0)