packages feed

hackport-0.8.0.0: cabal/Cabal-tree-diff/src/Data/TreeDiff/Instances/CabalSPDX.hs

{-# LANGUAGE CPP #-}
{-# OPTIONS_GHC -freduction-depth=0 #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}
module Data.TreeDiff.Instances.CabalSPDX () where

import Data.TreeDiff
import Distribution.License (License)

import Data.TreeDiff.Instances.CabalVersion ()

import qualified Distribution.SPDX as SPDX

-- 'License' almost belongs here.

instance ToExpr License

-- Generics instance is too heavy
instance ToExpr SPDX.LicenseId where toExpr = defaultExprViaShow
instance ToExpr SPDX.LicenseExceptionId where toExpr = defaultExprViaShow

instance ToExpr SPDX.License
instance ToExpr SPDX.LicenseExpression
instance ToExpr SPDX.LicenseRef
instance ToExpr SPDX.SimpleLicenseExpression