hsqml-datamodel-0.0.0.0: HsQML (Qt5) data model.

Copyright(c) Marcin Mrotek, 2015
LicenseBSD3
Maintainermarcin.jan.mrotek@gmail.com
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010
Extensions
  • PolyKinds
  • DefaultSignatures
  • FlexibleContexts
  • KindSignatures
  • TypeOperators
  • ExplicitNamespaces

Graphics.QML.DataModel.Internal.Generic.Mock

Description

 

Synopsis

Documentation

class Mock t where Source

A class that constructs a mock object, with all fields set to undefined, for use with generic implementations that don't actually use the supplied data. Only data types with a single constuctor can have an unambiguous mock object.

Minimal complete definition

Nothing

Methods

mock :: t Source

Construct a mock object of a data type with a single constructor, with undefined fields.

class GMock f where Source

Methods

gMock :: f a Source

Generic version of mock.

Instances

GMock * (K1 i c) Source 
(GMock * a, GMock * b) => GMock * ((:*:) a b) Source 
GMock * f => GMock * (M1 i t f) Source