#9 Add a MINIMAL pragma

Ouvert
sheaf veut fusionner 1 commits à partir de sheaf/minimal vers koz.ross/master
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/Data/Finitary.hs

+ 2 - 0
src/Data/Finitary.hs

@@ -205,6 +205,8 @@ class (Eq a, KnownNat (Cardinality a)) => Finitary (a :: Type) where
 
   type Cardinality a = GCardinality (Rep a)
 
+  {-# MINIMAL fromFinite, toFinite #-}
+
   -- | Converts an index into its corresponding inhabitant.
   fromFinite :: Finite (Cardinality a) -> a
   default fromFinite :: (Generic a, GFinitary (Rep a), Cardinality a ~ GCardinality (Rep a)) => Finite (Cardinality a) -> a