morley-1.16.3: src/Morley/Util/Instances.hs
-- SPDX-FileCopyrightText: 2021 Oxhead Alpha
-- SPDX-License-Identifier: LicenseRef-MIT-OA
{-# OPTIONS_GHC -Wno-orphans #-}
-- | Missing instances from libraries.
module Morley.Util.Instances () where
import Data.Default (Default(..))
import Fmt (Buildable(..))
instance Default Natural where
def = 0
instance Buildable Natural where
build = build @Integer . fromIntegral
instance Buildable a => (Buildable (Identity a)) where
build (Identity x) = build x