24 lines
576 B
Haskell
24 lines
576 B
Haskell
-- SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>
|
|
--
|
|
-- SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
{-# OPTIONS_GHC -fno-warn-orphans #-}
|
|
|
|
module Data.Monoid.Instances
|
|
(
|
|
) where
|
|
|
|
import ClassyPrelude
|
|
import Data.Monoid
|
|
|
|
type instance Element (Dual a) = a
|
|
instance MonoPointed (Dual a)
|
|
type instance Element (Sum a) = a
|
|
instance MonoPointed (Sum a)
|
|
type instance Element (Product a) = a
|
|
instance MonoPointed (Product a)
|
|
type instance Element (First a) = a
|
|
instance MonoPointed (First a)
|
|
type instance Element (Last a) = a
|
|
instance MonoPointed (Last a)
|