From 27e5d0c6c20d95221bb5e6d96de720c52f03fdf4 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 25 Jul 2017 21:10:11 -0400 Subject: Add Typeable instance to Bootstrapper, fixing build with old versions of ghc. --- debian/changelog | 7 +++++++ .../comment_4_c2e07d9bfba84fbdcf408a09965d6cb6._comment | 10 ++++++++++ src/Propellor/Bootstrap.hs | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 doc/forum/Error_building_on_remote_host/comment_4_c2e07d9bfba84fbdcf408a09965d6cb6._comment diff --git a/debian/changelog b/debian/changelog index 948a44b4..9e1c15c1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +propellor (4.5.3) UNRELEASED; urgency=medium + + * Add Typeable instance to Bootstrapper, fixing build with old versions + of ghc. + + -- Joey Hess Tue, 25 Jul 2017 21:01:23 -0400 + propellor (4.5.2) unstable; urgency=medium * Added Rsync.installed property. diff --git a/doc/forum/Error_building_on_remote_host/comment_4_c2e07d9bfba84fbdcf408a09965d6cb6._comment b/doc/forum/Error_building_on_remote_host/comment_4_c2e07d9bfba84fbdcf408a09965d6cb6._comment new file mode 100644 index 00000000..7d8f26fe --- /dev/null +++ b/doc/forum/Error_building_on_remote_host/comment_4_c2e07d9bfba84fbdcf408a09965d6cb6._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 4""" + date="2017-07-26T00:52:20Z" + content=""" +Interesting that it works on newer ghc without an explict +`Typeable Bootstrapper` instance. + +I've added the missing instance. +"""]] diff --git a/src/Propellor/Bootstrap.hs b/src/Propellor/Bootstrap.hs index 21f051c9..21d29bcc 100644 --- a/src/Propellor/Bootstrap.hs +++ b/src/Propellor/Bootstrap.hs @@ -1,3 +1,5 @@ +{-# LANGUAGE DeriveDataTypeable #-} + module Propellor.Bootstrap ( Bootstrapper(..), Builder(..), @@ -34,7 +36,7 @@ data Bootstrapper = Robustly Builder | OSOnly deriving (Show) data Builder = Cabal | Stack - deriving (Show) + deriving (Show, Typeable) defaultBootstrapper :: Bootstrapper defaultBootstrapper = Robustly Cabal -- cgit v1.2.3