on main help sign in
Create the project
fccc599vrom911
.gitignorenew file+52
@@ -0,0 +1,52 @@
1+### Haskell
2+dist
3+dist-*
4+cabal-dev
5+*.o
6+*.hi
7+*.chi
8+*.chs.h
9+*.dyn_o
10+*.dyn_hi
11+*.prof
12+*.aux
13+*.hp
14+*.eventlog
15+.virtualenv
16+.hsenv
17+.hpc
18+.cabal-sandbox/
19+cabal.sandbox.config
20+cabal.config
21+cabal.project.local
22+.HTF/
23+# Stack
24+.stack-work/
25+
26+### IDE/support
27+# Vim
28+[._]*.s[a-v][a-z]
29+[._]*.sw[a-p]
30+[._]s[a-v][a-z]
31+[._]sw[a-p]
32+*~
33+tags
34+
35+# IntellijIDEA
36+.idea/
37+.ideaHaskellLib/
38+*.iml
39+
40+# Atom
41+.haskell-ghc-mod.json
42+
43+# VS
44+.vscode/
45+
46+# Emacs
47+*#
48+.dir-locals.el
49+TAGS
50+
51+# other
52+.DS_Store
.travis.ymlnew file+28
@@ -0,0 +1,28 @@
1+# Use new container infrastructure to enable caching
2+sudo: false
3+
4+# Choose a lightweight base image; we provide our own build tools.
5+language: c
6+
7+# GHC depends on GMP. You can add other dependencies here as well.
8+addons:
9+ apt:
10+ packages:
11+ - libgmp-dev
12+
13+before_install:
14+# Download and unpack the stack executable
15+- mkdir -p ~/.local/bin
16+- export PATH=$HOME/.local/bin:$PATH
17+- travis_retry curl -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
18+
19+# This line does all of the work: installs GHC if necessary, builds the
20+# library, executables, and test suites, and runs the test suites.
21+# `--no-terminal works` around some quirks in Travis's terminal implementation.
22+script: stack --no-terminal --install-ghc test
23+
24+# Caching so the next build will be fast too.
25+cache:
26+ directories:
27+ - $HOME/.stack
28+ - $HOME/build/vrom911/typerep-map/.stack-work
CHANGELOG.mdnew file+10
@@ -0,0 +1,10 @@
1+Change log
2+==========
3+
4+typerep-map uses [PVP Versioning][1].
5+The change log is available [on GitHub][2].
6+
7+[1]: https://pvp.haskell.org
8+[2]: https://github.com/vrom911/typerep-map/releases
9+# 0.1.0.0
10+* Initially created.
LICENSEnew file+21
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2017 Veronika Romashkina
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
README.mdnew file+5
@@ -0,0 +1,5 @@
1+# typerep-map
2+
3+[![Hackage](https://img.shields.io/hackage/v/typerep-map.svg)](https://hackage.haskell.org/package/typerep-map)
4+[![Build status](https://secure.travis-ci.org/vrom911/typerep-map.svg)](https://travis-ci.org/vrom911/typerep-map)
5+[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/vrom911/typerep-map/blob/master/LICENSE)
Setup.hsnew file+3
@@ -0,0 +1,3 @@
1+import Distribution.Simple
2+
3+main = defaultMain
benchmark/Main.hsnew file+4
@@ -0,0 +1,4 @@
1+import Criterion.Main
2+
3+main :: IO ()
4+main = defaultMain [bench "const" (whnf const ())]
src/Lib.hsnew file+6
@@ -0,0 +1,6 @@
1+module Lib
2+ ( someFunc
3+ ) where
4+
5+someFunc :: IO ()
6+someFunc = putStrLn "someFunc"
stack.yamlnew file+66
@@ -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+# resolver: ghcjs-0.1.0_ghc-7.10.2
15+# resolver:
16+# name: custom-snapshot
17+# location: "./custom-snapshot.yaml"
18+resolver: lts-9.18
19+
20+# User packages to be built.
21+# Various formats can be used as shown in the example below.
22+#
23+# packages:
24+# - some-directory
25+# - https://example.com/foo/bar/baz-0.0.2.tar.gz
26+# - location:
27+# git: https://github.com/commercialhaskell/stack.git
28+# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
29+# - location: https://github.com/commercialhaskell/stack/commit/e7b331f14bcffb8367cd58fbfc8b40ec7642100a
30+# extra-dep: true
31+# subdirs:
32+# - auto-update
33+# - wai
34+#
35+# A package marked 'extra-dep: true' will only be built if demanded by a
36+# non-dependency (i.e. a user package), and its test suites and benchmarks
37+# will not be run. This is useful for tweaking upstream packages.
38+packages:
39+- .
40+# Dependency packages to be pulled from upstream that are not in the resolver
41+# (e.g., acme-missiles-0.3)
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: ">=1.5"
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
test/Spec.hsnew file+2
@@ -0,0 +1,2 @@
1+main :: IO ()
2+main = putStrLn "Test suite not yet implemented"
typerep-map.cabalnew file+45
@@ -0,0 +1,45 @@
1+name: typerep-map
2+version: 0.1.0.0
3+description: Efficient implementation of data type with types as keys
4+homepage: https://github.com/vrom911/typerep-map
5+bug-reports: https://github.com/vrom911/typerep-map/issues
6+license: MIT
7+license-file: LICENSE
8+author: Veronika Romashkina
9+maintainer: vrom911@gmail.com
10+copyright: 2017 Veronika Romashkina
11+category: Data Structures
12+build-type: Simple
13+extra-source-files: README.md
14+cabal-version: >=1.10
15+tested-with: GHC == 8.0.1
16+
17+library
18+ hs-source-dirs: src
19+ exposed-modules: Lib
20+ ghc-options: -Wall
21+ build-depends: base
22+ default-language: Haskell2010
23+
24+test-suite typerep-map-test
25+ type: exitcode-stdio-1.0
26+ hs-source-dirs: test
27+ main-is: Spec.hs
28+ build-depends: base
29+ , typerep-map
30+ ghc-options: -Wall -Werror -threaded -rtsopts -with-rtsopts=-N
31+ default-language: Haskell2010
32+
33+benchmark typerep-map-benchmark
34+ type: exitcode-stdio-1.0
35+ default-language: Haskell2010
36+ ghc-options: -Wall -Werror -O2 -threaded -rtsopts -with-rtsopts=-N
37+ hs-source-dirs: benchmark
38+ main-is: Main.hs
39+ build-depends: base
40+ , criterion
41+ , typerep-map
42+
43+source-repository head
44+ type: git
45+ location: https://github.com/vrom911/typerep-map.git