From 9110064fe62f98dd3ecc5fb4c3915a843492b8fb Mon Sep 17 00:00:00 2001 From: stuebinm Date: Mon, 23 Oct 2023 23:18:34 +0200 Subject: a year went by This does many meta-things, but changes no functionality: - get rid of stack, and use just cabal with a stackage snapshot instead (why did I ever think stack was a good idea?) - update the stackage snapshot to something halfway recent - thus making builds work on nixpkgs-23.05 (current stable) - separating out packages into their own cabal files - use the GHC2021 set of extensions as default - very slight code changes to make things build again - update readme accordingly - stylish-haskell run --- tiled/Data/Tiled.hs | 4 ---- tiled/default.nix | 13 +++++++++++++ tiled/tiled.cabal | 24 ++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 tiled/default.nix create mode 100644 tiled/tiled.cabal (limited to 'tiled') diff --git a/tiled/Data/Tiled.hs b/tiled/Data/Tiled.hs index 9256375..99c5c9d 100644 --- a/tiled/Data/Tiled.hs +++ b/tiled/Data/Tiled.hs @@ -1,13 +1,9 @@ -{-# LANGUAGE BangPatterns #-} {-# LANGUAGE DeriveAnyClass #-} -{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE LambdaCase #-} -{-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} -{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} diff --git a/tiled/default.nix b/tiled/default.nix new file mode 100644 index 0000000..c112497 --- /dev/null +++ b/tiled/default.nix @@ -0,0 +1,13 @@ +{ mkDerivation, aeson, base, bytestring, lib, text, universum +, vector +}: +mkDerivation { + pname = "tiled"; + version = "0.1"; + src = ./.; + libraryHaskellDepends = [ + aeson base bytestring text universum vector + ]; + homepage = "https://stuebinm.eu/git/walint"; + license = "unknown"; +} diff --git a/tiled/tiled.cabal b/tiled/tiled.cabal new file mode 100644 index 0000000..2864748 --- /dev/null +++ b/tiled/tiled.cabal @@ -0,0 +1,24 @@ +cabal-version: 3.0 +name: tiled +version: 0.1 +author: stuebinm +maintainer: stuebinm@disroot.org +copyright: 2022 stuebinm +homepage: https://stuebinm.eu/git/walint + +library + exposed-modules: + Data.Tiled + Data.Tiled.Abstract + Data.Tiled.TH + default-extensions: + NoImplicitPrelude + ghc-options: -Wall -Wno-name-shadowing -Wno-unticked-promoted-constructors + build-depends: + aeson + , base + , bytestring + , text + , universum + , vector + default-language: GHC2021 -- cgit v1.2.3