Commit bb7d33fc authored by root's avatar root
Browse files

initial commit, hashable instance for ixset-typed

parent ba461fc4
### Haskell
dist
dist-*
cabal-dev
*.o
*.hi
*.chi
*.chs.h
*.dyn_o
*.dyn_hi
*.prof
*.aux
*.hp
*.eventlog
.virtualenv
.hsenv
.hpc
.cabal-sandbox/
cabal.sandbox.config
cabal.config
cabal.project.local
.ghc.environment.*
.HTF/
# Stack
.stack-work/
stack.yaml.lock
### IDE/support
# Vim
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
*~
tags
# IntellijIDEA
.idea/
.ideaHaskellLib/
*.iml
# Atom
.haskell-ghc-mod.json
# VS
.vscode/
# Emacs
*#
.dir-locals.el
TAGS
# other
.DS_Store
*~
\ No newline at end of file
image: nixos/nix:latest
before_script:
- export LC_ALL=C.UTF-8
- nix-env -iA nixpkgs.stack
- nix-env -iA nixpkgs.hlint
stages:
- lint
- build
lint:
stage: lint
script:
- hlint .
build:
stage: build
script:
- stack --nix build --ghc-options "-Wall -Werror"
# Changelog
`ixset-typed-hashable-instance` uses [PVP Versioning][1].
The changelog is available [on GitHub][2].
## 0.0.0.0
* Initially created.
[1]: https://pvp.haskell.org
[2]: https://github.com/homotopic-tech/ixset-typed-hashable-instance/releases
# Changelog for ixset-typed-hashable-instance
## v0.1.0.0
* Hashabkle instance for ixset-typed.
MIT License
Copyright (c) 2020 Daniel Firth
Permission is hereby granted, free of charge, to any person obtaining a copy
......
# ixset-typed-hashable-instance
[![Hackage](https://img.shields.io/hackage/v/ixset-typed-hashable-instance.svg?logo=haskell)](https://hackage.haskell.org/package/ixset-typed-hashable-instance)
[![Stackage Lts](http://stackage.org/package/ixset-typed-hashable-instance/badge/lts)](http://stackage.org/lts/package/ixset-typed-hashable-instance)
[![Stackage Nightly](http://stackage.org/package/ixset-typed-hashable-instance/badge/nightly)](http://stackage.org/nightly/package/ixset-typed-hashable-instance)
[![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
Hashable orphan instance for ixset-typed.
cabal-version: 2.4
name: ixset-typed-hashable-instance
version: 0.0.0.0
synopsis: Hashable orphan instance for ixset-typed.
description: Hashable orphan instance for ixset-typed.
homepage: https://github.com/homotopic-tech/ixset-typed-hashable-instance
bug-reports: https://github.com/homotopic-tech/ixset-typed-hashable-instance/issues
license: MIT
license-file: LICENSE
author: Daniel Firth
maintainer: Daniel Firth <dan.firth@homotopic.tech>
copyright: 2020 Daniel Firth
category: Data Structures
build-type: Simple
extra-doc-files: README.md
CHANGELOG.md
tested-with: GHC == 8.8.3
cabal-version: 1.12
source-repository head
type: git
location: https://github.com/homotopic-tech/ixset-typed-hashable-instance.git
-- This file has been generated from package.yaml by hpack version 0.34.2.
--
-- see: https://github.com/sol/hpack
common common-options
build-depends: base ^>= 4.13.0.0
ghc-options: -Wall
-Wcompat
-Widentities
-Wincomplete-uni-patterns
-Wincomplete-record-updates
if impl(ghc >= 8.0)
ghc-options: -Wredundant-constraints
if impl(ghc >= 8.2)
ghc-options: -fhide-source-paths
if impl(ghc >= 8.4)
ghc-options: -Wmissing-export-lists
-Wpartial-fields
if impl(ghc >= 8.8)
ghc-options: -Wmissing-deriving-strategies
name: ixset-typed-hashable-instance
version: 0.1.0.0
synopsis: Hashable instance for ixset-typed.
description: Please see the README on GitHub at <https://github.com/githubuser/ixset-typed-hashable-instance#readme>
category: Data Structures
homepage: https://github.com/githubuser/ixset-typed-hashable-instance#readme
bug-reports: https://github.com/githubuser/ixset-typed-hashable-instance/issues
author: Daniel Firth
maintainer: dan.firth@homotopic.tech
copyright: 2020 Daniel Firth
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
README.md
ChangeLog.md
default-language: Haskell2010
source-repository head
type: git
location: https://github.com/githubuser/ixset-typed-hashable-instance
library
import: common-options
hs-source-dirs: src
exposed-modules: IxsetTypedHashableInstance
exposed-modules:
Data.IxSet.Typed.Hashable
Lib
other-modules:
Paths_ixset_typed_hashable_instance
hs-source-dirs:
src
build-depends:
base >=4.7 && <5
default-language: Haskell2010
name: ixset-typed-hashable-instance
version: 0.1.0.0
github: https://gitlab.com/homotopic-tech/ixset-typed-hashable-instance
license: MIT
author: "Daniel Firth"
maintainer: "dan.firth@homotopic.tech"
copyright: "2020 Daniel Firth"
extra-source-files:
- README.md
- ChangeLog.md
synopsis: Hashable instance for ixset-typed.
category: Data Structures
description: Please see the README on GitHub at <https://github.com/githubuser/ixset-typed-hashable-instance#readme>
dependencies:
- base >= 4.7 && < 5
- hashable
- ixset-typed
library:
source-dirs: src
module Data.IxSet.Typed.Hashable where
import Data.IxSet.Typed
import Hashable
instance (Indexable ixs x, Hashable x) => Hashable (IxSet ixs x) where
hashWithSalt n x = n `hashWithSalt` toList x
{- |
Copyright: (c) 2020 Daniel Firth
SPDX-License-Identifier: MIT
Maintainer: Daniel Firth <dan.firth@homotopic.tech>
Hashable orphan instance for ixset-typed.
-}
module IxsetTypedHashableInstance
( someFunc
) where
someFunc :: IO ()
someFunc = putStrLn ("someFunc" :: String)
resolver: lts-15.5
# This file was automatically generated by 'stack init'
#
# Some commonly used options have been documented as comments in this file.
# For advanced use and comprehensive documentation of the format, please see:
# https://docs.haskellstack.org/en/stable/yaml_configuration/
# Resolver to choose a 'specific' stackage snapshot or a compiler version.
# A snapshot resolver dictates the compiler version and the set of packages
# to be used for project dependencies. For example:
#
# resolver: lts-3.5
# resolver: nightly-2015-09-21
# resolver: ghc-7.10.2
#
# The location of a snapshot can be provided as a file or url. Stack assumes
# a snapshot provided as a file might change, whereas a url resource does not.
#
# resolver: ./custom-snapshot.yaml
# resolver: https://example.com/snapshots/2018-01-01.yaml
resolver: lts-16.7
# User packages to be built.
# Various formats can be used as shown in the example below.
#
# packages:
# - some-directory
# - https://example.com/foo/bar/baz-0.0.2.tar.gz
# subdirs:
# - auto-update
# - wai
packages:
- .
# Dependency packages to be pulled from upstream that are not in the resolver.
# These entries can reference officially published versions as well as
# forks / in-progress versions pinned to a git hash. For example:
#
# extra-deps:
# - acme-missiles-0.3
# - git: https://github.com/commercialhaskell/stack.git
# commit: e7b331f14bcffb8367cd58fbfc8b40ec7642100a
#
# extra-deps: []
# Override default flag values for local packages and extra-deps
# flags: {}
# Extra package databases containing global packages
# extra-package-dbs: []
# Control whether we use the GHC we find on the path
# system-ghc: true
#
# Require a specific version of stack, using version ranges
# require-stack-version: -any # Default
# require-stack-version: ">=2.3"
#
# Override the architecture used by stack, especially useful on Windows
# arch: i386
# arch: x86_64
#
# Extra directories used by stack for building
# extra-include-dirs: [/path/to/dir]
# extra-lib-dirs: [/path/to/dir]
#
# Allow a newer minor version of GHC than the snapshot specifies
# compiler-check: newer-minor
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
packages: []
snapshots:
- completed:
size: 531932
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/16/7.yaml
sha256: 96ceeddd4fd68b2d430f7695a12eadefee760b7034c88c75d99d0f380f483068
original: lts-16.7
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment