Commit 4b5f2673 authored by Daniel Firth's avatar Daniel Firth
Browse files

initial commit: version-natural-dhall-instance

parents
No related merge requests found
Pipeline #3509 failed with stages
in 3 seconds
result*
dist-newstyle
stages:
- generate
- check
generate-flake-ci:
stage: generate
script: nix run "git+https://gitlab.homotopic.tech/haskell/flake-to-gitlab-ci?ref=refs/tags/0.2.2.0" > flake-ci.yml
artifacts:
paths:
- flake-ci.yml
flake-ci:
stage: check
trigger:
include:
- artifact: flake-ci.yml
job: generate-flake-ci
strategy: depend
# Changelog for version-natural-dhall-instance
## v0.1.0.0
* `FromDhall` and `ToDhall` instances for `version-natural`.
Copyright Homotopic.Tech Ltd 2023
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Author name here nor the names of other
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# version-natural-dhall-instance
FromDhall and ToDhall instances for version-natural.
packages: ./.
test-show-details: streaming
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1678379998,
"narHash": "sha256-TZdfNqftHhDuIFwBcN9MUThx5sQXCTeZk9je5byPKRw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "c13d60b89adea3dc20704c045ec4d50dd964d447",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"locked": {
"lastModified": 1678901627,
"narHash": "sha256-U02riOqrKKzwjsxc/400XnElV+UtPUQWpANPlyazjH0=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "93a2b84fc4b70d9e089d029deacc3583435c2ed6",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_2": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"flake-utils_3": {
"locked": {
"lastModified": 1644229661,
"narHash": "sha256-1YdnJAsNy69bpcjuoKdOYQX0YxZBiCYZo4Twxerqv7k=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "3cecb5b042f7f209c56ffd8371b2711a290ec797",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"get-flake": {
"locked": {
"lastModified": 1673819588,
"narHash": "sha256-gRtwKAlu4htvS6dxyZnW3n+vMS1acqnMGVHqxUdETeY=",
"owner": "ursi",
"repo": "get-flake",
"rev": "e0917b6f564aa5acefb1484b5baf76da21746c3c",
"type": "github"
},
"original": {
"owner": "ursi",
"repo": "get-flake",
"type": "github"
}
},
"horizon-platform": {
"inputs": {
"flake-parts": "flake-parts",
"get-flake": "get-flake",
"horizon-shell-flake": "horizon-shell-flake",
"lint-utils": "lint-utils",
"nixpkgs": "nixpkgs_2"
},
"locked": {
"lastModified": 1681131484,
"narHash": "sha256-muNQhGsQs+8ktJTfx6UiYWNUDhqni4EhCqE6FTCrZZ8=",
"ref": "refs/heads/master",
"rev": "f0b02e93963faf1c3d55f32de379bebea09db5ef",
"revCount": 1065,
"type": "git",
"url": "https://gitlab.horizon-haskell.net/package-sets/horizon-platform"
},
"original": {
"type": "git",
"url": "https://gitlab.horizon-haskell.net/package-sets/horizon-platform"
}
},
"horizon-shell-flake": {
"flake": false,
"locked": {
"lastModified": 1679524452,
"narHash": "sha256-xzNxvLVa3o0F/z4CnBDORv2Y6PfxjlGv7b7LybIyCSg=",
"ref": "refs/tags/0.0.8",
"rev": "21b8913803cefeb287bb244c7ee335638233db7f",
"revCount": 21,
"type": "git",
"url": "https://gitlab.horizon-haskell.net/shells/horizon-shell"
},
"original": {
"ref": "refs/tags/0.0.8",
"type": "git",
"url": "https://gitlab.horizon-haskell.net/shells/horizon-shell"
}
},
"lint-utils": {
"inputs": {
"flake-utils": "flake-utils_2",
"nixpkgs": "nixpkgs"
},
"locked": {
"lastModified": 1676204115,
"narHash": "sha256-cYYt6sN9t+lYYYelAbRtM/ioVJ27kMcUtR4unA8jfd4=",
"ref": "refs/heads/master",
"rev": "cc55bca9b25e65f7060de642c99e51bd96dfc190",
"revCount": 47,
"type": "git",
"url": "https://gitlab.homotopic.tech/nix/lint-utils"
},
"original": {
"type": "git",
"url": "https://gitlab.homotopic.tech/nix/lint-utils"
}
},
"lint-utils_2": {
"inputs": {
"flake-utils": "flake-utils_3",
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1676204115,
"narHash": "sha256-cYYt6sN9t+lYYYelAbRtM/ioVJ27kMcUtR4unA8jfd4=",
"ref": "refs/heads/master",
"rev": "cc55bca9b25e65f7060de642c99e51bd96dfc190",
"revCount": 47,
"type": "git",
"url": "https://gitlab.homotopic.tech/nix/lint-utils"
},
"original": {
"type": "git",
"url": "https://gitlab.homotopic.tech/nix/lint-utils"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1644525281,
"narHash": "sha256-D3VuWLdnLmAXIkooWAtbTGSQI9Fc1lkvAr94wTxhnTU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "48d63e924a2666baf37f4f14a18f19347fbd54a2",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"dir": "lib",
"lastModified": 1678375444,
"narHash": "sha256-XIgHfGvjFvZQ8hrkfocanCDxMefc/77rXeHvYdzBMc8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "130fa0baaa2b93ec45523fdcde942f6844ee9f6e",
"type": "github"
},
"original": {
"dir": "lib",
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1679198465,
"narHash": "sha256-VfXpHpniNWgg7pBzxb20pRX7kqn80LApPDQYTReiFCw=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "5a05160f7671434e1c833b1b01284b876e04eca4",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1678875422,
"narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"horizon-platform": "horizon-platform",
"lint-utils": "lint-utils_2",
"nixpkgs": "nixpkgs_3"
}
}
},
"root": "root",
"version": 7
}
{
description = "version-natural-dhall-instance";
nixConfig = {
extra-substituters = "https://horizon.cachix.org";
extra-trusted-public-keys = "horizon.cachix.org-1:MeEEDRhRZTgv/FFGCv3479/dmJDfJ82G6kfUDxMSAw0=";
};
inputs = {
flake-utils.url = "github:numtide/flake-utils";
horizon-platform.url = "git+https://gitlab.horizon-haskell.net/package-sets/horizon-platform";
lint-utils = {
url = "git+https://gitlab.homotopic.tech/nix/lint-utils";
inputs.nixpkgs.follows = "nixpkgs";
};
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
};
outputs =
inputs@
{ self
, flake-utils
, lint-utils
, horizon-platform
, nixpkgs
, ...
}:
flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:
let
pkgs = import nixpkgs { inherit system; };
in
with pkgs.haskell.lib.compose;
let
myOverlay = final: prev: { version-natural-dhall-instance = final.callCabal2nix "version-natural-dhall-instance" ./. { }; };
legacyPackages = horizon-platform.legacyPackages.${system}.extend myOverlay;
in
{
checks =
with lint-utils.outputs.linters.${system}; {
cabal-fmt = cabal-fmt { src = self; };
dhall-format = dhall-format { src = self; };
hlint = hlint { src = self; };
nixpkgs-fmt = nixpkgs-fmt { src = self; };
stylish-haskell = stylish-haskell { src = self; };
werror = werror { pkg = legacyPackages.horizon-spec; };
};
devShells.default = legacyPackages.version-natural-dhall-instance.env.overrideAttrs (attrs: {
buildInputs = attrs.buildInputs ++ [
pkgs.cabal-install
];
});
packages.default = legacyPackages.version-natural-dhall-instance;
});
}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.Version.Natural.Dhall () where
import Data.Version.Natural (Version)
import Dhall (FromDhall, ToDhall)
instance FromDhall (Version)
instance ToDhall (Version)
cabal-version: 1.12
name: version-natural-dhall-instance
version: 0.1.0.0
synopsis: FromDhall and ToDhall instances for version-natural.
description: FromDhall and ToDhall instances for version-natural.
category: Data, Dhall
author: Daniel Firth
maintainer: dan.firth@homotopic.tech
copyright: 2023 Homotopic.Tech Ltd
license: MIT
license-file: LICENSE
build-type: Simple
extra-source-files:
ChangeLog.md
README.md
source-repository head
type: git
location: https://gitlab.homotopic.tech/haskell/version-natural-dhall-instance
library
exposed-modules: Data.Version.Natural.Dhall
hs-source-dirs: src
default-extensions:
DataKinds
DerivingStrategies
ghc-options:
-Weverything -Wno-all-missed-specialisations -Wno-implicit-prelude
-Wno-missing-safe-haskell-mode -Wno-prepositive-qualified-module
-Wno-safe -Wno-unsafe
build-depends:
base >=4.7 && <5
, dhall
, version-natural
default-language: Haskell2010
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