From 2986230bd50ef5fcf014703f9e33a662f459c199 Mon Sep 17 00:00:00 2001 From: Jon Schoning Date: Sun, 17 Apr 2022 11:51:31 -0500 Subject: [PATCH] bump espial version --- changelog.md | 3 +++ espial.cabal | 4 ++-- package.yaml | 2 +- src/Generic.hs | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 037be1e..07bf09c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,6 @@ +__v0.0.12__ +update to ghc9 + __v0.0.11__ add api key auth. add CreateApiKey/DeleteApiKey commands to executable 'migration' diff --git a/espial.cabal b/espial.cabal index b0b0d20..5e0e23e 100644 --- a/espial.cabal +++ b/espial.cabal @@ -1,11 +1,11 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.34.7. +-- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack name: espial -version: 0.0.11 +version: 0.0.12 synopsis: Espial is an open-source, web-based bookmarking server. description: . Espial is an open-source, web-based bookmarking server. diff --git a/package.yaml b/package.yaml index 47d2f84..6c2b7a0 100644 --- a/package.yaml +++ b/package.yaml @@ -1,6 +1,6 @@ name: espial synopsis: Espial is an open-source, web-based bookmarking server. -version: "0.0.11" +version: "0.0.12" description: ! ' Espial is an open-source, web-based bookmarking server. diff --git a/src/Generic.hs b/src/Generic.hs index 6e35a45..b969835 100644 --- a/src/Generic.hs +++ b/src/Generic.hs @@ -2,11 +2,12 @@ module Generic where import GHC.Generics import ClassyPrelude.Yesod +import Data.Kind (Type) constrName :: (HasConstructor (Rep a), Generic a)=> a -> String constrName = genericConstrName . from -class HasConstructor (f :: * -> *) where +class HasConstructor (f :: Type -> Type) where genericConstrName :: f x -> String instance HasConstructor f => HasConstructor (D1 c f) where