Copyright | (c) Chris Reade 2024 |
---|---|
License | BSD-style |
Maintainer | chrisreade@mac.com |
Stability | experimental |
Safe Haskell | None |
Language | GHC2021 |
CheckBackend
Description
This module introduces a class synonym OKBackend to abbreviate requirements of a backend for drawing tilings. The instance declaration requires UndecidableInstances to be enabled.
Documentation
class (V b ~ V2, N b ~ Double, Renderable (Path V2 Double) b, Renderable (Text Double) b) => OKBackend b Source #
Class OKBackend is a class synonym for a collection of constraints on a Backend b suitable for drawing tiles. That is 2 dimensional with Real numbers (Double) able to render paths and text.
Instances
(V b ~ V2, N b ~ Double, Renderable (Path V2 Double) b, Renderable (Text Double) b) => OKBackend b Source # | Instance declaration for OKBackend requires UndecidableInstances to be enabled, but allows a suitable backend B to be recognised as an instance without explicitly writing instance OKBackend B Note B will be declared by user of this library and is not declared in the library |
Defined in CheckBackend |