gi-cairo 0.1.14.12 → 0.1.14.13
raw patch · 17 files changed
+152/−6 lines, 17 filesdep ~haskell-gi-basePVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: haskell-gi-base
API changes (from Hackage documentation)
- GI.Cairo.Enums: instance BoxedEnum Content
- GI.Cairo.Enums: instance Enum Content
- GI.Cairo.Enums: instance Eq Content
- GI.Cairo.Enums: instance Show Content
- GI.Cairo.Structs.Context: instance BoxedObject Context
- GI.Cairo.Structs.FontFace: instance BoxedObject FontFace
- GI.Cairo.Structs.Pattern: instance BoxedObject Pattern
- GI.Cairo.Structs.RectangleInt: instance BoxedObject RectangleInt
- GI.Cairo.Structs.Region: instance BoxedObject Region
- GI.Cairo.Structs.ScaledFont: instance BoxedObject ScaledFont
- GI.Cairo.Structs.Surface: instance BoxedObject Surface
+ GI.Cairo.Enums: instance Data.GI.Base.BasicTypes.BoxedEnum GI.Cairo.Enums.Content
+ GI.Cairo.Enums: instance GHC.Classes.Eq GI.Cairo.Enums.Content
+ GI.Cairo.Enums: instance GHC.Enum.Enum GI.Cairo.Enums.Content
+ GI.Cairo.Enums: instance GHC.Show.Show GI.Cairo.Enums.Content
+ GI.Cairo.Structs.Context: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Context.ResolveContextMethod t GI.Cairo.Structs.Context.Context, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Context.Context p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Context.Context -> p)
+ GI.Cairo.Structs.Context: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Context.ResolveContextMethod t GI.Cairo.Structs.Context.Context, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Context.Context p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Context.Context -> p)
+ GI.Cairo.Structs.Context: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Context.Context
+ GI.Cairo.Structs.FontFace: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontFace.ResolveFontFaceMethod t GI.Cairo.Structs.FontFace.FontFace, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontFace.FontFace p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontFace.FontFace -> p)
+ GI.Cairo.Structs.FontFace: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontFace.ResolveFontFaceMethod t GI.Cairo.Structs.FontFace.FontFace, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontFace.FontFace p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontFace.FontFace -> p)
+ GI.Cairo.Structs.FontFace: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.FontFace.FontFace
+ GI.Cairo.Structs.FontOptions: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontOptions.ResolveFontOptionsMethod t GI.Cairo.Structs.FontOptions.FontOptions, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontOptions.FontOptions p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontOptions.FontOptions -> p)
+ GI.Cairo.Structs.FontOptions: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontOptions.ResolveFontOptionsMethod t GI.Cairo.Structs.FontOptions.FontOptions, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontOptions.FontOptions p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontOptions.FontOptions -> p)
+ GI.Cairo.Structs.FontType: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontType.ResolveFontTypeMethod t GI.Cairo.Structs.FontType.FontType, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontType.FontType p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.FontType.FontType -> p)
+ GI.Cairo.Structs.FontType: instance (info Data.Type.Equality.~ GI.Cairo.Structs.FontType.ResolveFontTypeMethod t GI.Cairo.Structs.FontType.FontType, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.FontType.FontType p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.FontType.FontType -> p)
+ GI.Cairo.Structs.Matrix: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Matrix.ResolveMatrixMethod t GI.Cairo.Structs.Matrix.Matrix, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Matrix.Matrix p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Matrix.Matrix -> p)
+ GI.Cairo.Structs.Matrix: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Matrix.ResolveMatrixMethod t GI.Cairo.Structs.Matrix.Matrix, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Matrix.Matrix p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Matrix.Matrix -> p)
+ GI.Cairo.Structs.Path: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Path.ResolvePathMethod t GI.Cairo.Structs.Path.Path, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Path.Path p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Path.Path -> p)
+ GI.Cairo.Structs.Path: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Path.ResolvePathMethod t GI.Cairo.Structs.Path.Path, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Path.Path p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Path.Path -> p)
+ GI.Cairo.Structs.Pattern: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Pattern.ResolvePatternMethod t GI.Cairo.Structs.Pattern.Pattern, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Pattern.Pattern p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Pattern.Pattern -> p)
+ GI.Cairo.Structs.Pattern: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Pattern.ResolvePatternMethod t GI.Cairo.Structs.Pattern.Pattern, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Pattern.Pattern p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Pattern.Pattern -> p)
+ GI.Cairo.Structs.Pattern: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Pattern.Pattern
+ GI.Cairo.Structs.RectangleInt: instance (info Data.Type.Equality.~ GI.Cairo.Structs.RectangleInt.ResolveRectangleIntMethod t GI.Cairo.Structs.RectangleInt.RectangleInt, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.RectangleInt.RectangleInt p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.RectangleInt.RectangleInt -> p)
+ GI.Cairo.Structs.RectangleInt: instance (info Data.Type.Equality.~ GI.Cairo.Structs.RectangleInt.ResolveRectangleIntMethod t GI.Cairo.Structs.RectangleInt.RectangleInt, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.RectangleInt.RectangleInt p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.RectangleInt.RectangleInt -> p)
+ GI.Cairo.Structs.RectangleInt: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.RectangleInt.RectangleInt
+ GI.Cairo.Structs.RectangleInt: newZeroRectangleInt :: MonadIO m => m RectangleInt
+ GI.Cairo.Structs.Region: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Region.ResolveRegionMethod t GI.Cairo.Structs.Region.Region, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Region.Region p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Region.Region -> p)
+ GI.Cairo.Structs.Region: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Region.ResolveRegionMethod t GI.Cairo.Structs.Region.Region, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Region.Region p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Region.Region -> p)
+ GI.Cairo.Structs.Region: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Region.Region
+ GI.Cairo.Structs.ScaledFont: instance (info Data.Type.Equality.~ GI.Cairo.Structs.ScaledFont.ResolveScaledFontMethod t GI.Cairo.Structs.ScaledFont.ScaledFont, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.ScaledFont.ScaledFont p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.ScaledFont.ScaledFont -> p)
+ GI.Cairo.Structs.ScaledFont: instance (info Data.Type.Equality.~ GI.Cairo.Structs.ScaledFont.ResolveScaledFontMethod t GI.Cairo.Structs.ScaledFont.ScaledFont, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.ScaledFont.ScaledFont p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.ScaledFont.ScaledFont -> p)
+ GI.Cairo.Structs.ScaledFont: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.ScaledFont.ScaledFont
+ GI.Cairo.Structs.Surface: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Surface.ResolveSurfaceMethod t GI.Cairo.Structs.Surface.Surface, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Surface.Surface p) => Data.GI.Base.Overloading.IsLabelProxy t (GI.Cairo.Structs.Surface.Surface -> p)
+ GI.Cairo.Structs.Surface: instance (info Data.Type.Equality.~ GI.Cairo.Structs.Surface.ResolveSurfaceMethod t GI.Cairo.Structs.Surface.Surface, Data.GI.Base.Overloading.MethodInfo info GI.Cairo.Structs.Surface.Surface p) => GHC.OverloadedLabels.IsLabel t (GI.Cairo.Structs.Surface.Surface -> p)
+ GI.Cairo.Structs.Surface: instance Data.GI.Base.BasicTypes.BoxedObject GI.Cairo.Structs.Surface.Surface
- GI.Cairo.Functions: imageSurfaceCreate :: MonadIO m => m ()
+ GI.Cairo.Functions: imageSurfaceCreate :: (MonadIO m) => m ()
Files
- GI/Cairo.hs +6/−0
- GI/Cairo/Callbacks.hs +1/−0
- GI/Cairo/Enums.hs +1/−0
- GI/Cairo/Functions.hs +2/−2
- GI/Cairo/Structs.hs +1/−0
- GI/Cairo/Structs/Context.hs +12/−0
- GI/Cairo/Structs/FontFace.hs +12/−0
- GI/Cairo/Structs/FontOptions.hs +12/−0
- GI/Cairo/Structs/FontType.hs +12/−0
- GI/Cairo/Structs/Matrix.hs +12/−0
- GI/Cairo/Structs/Path.hs +12/−0
- GI/Cairo/Structs/Pattern.hs +12/−0
- GI/Cairo/Structs/RectangleInt.hs +17/−0
- GI/Cairo/Structs/Region.hs +12/−0
- GI/Cairo/Structs/ScaledFont.hs +12/−0
- GI/Cairo/Structs/Surface.hs +12/−0
- gi-cairo.cabal +4/−4
GI/Cairo.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -12,6 +13,10 @@ module GI.Cairo.Structs , ++ module Data.GI.Base ,++ ) where import GI.Cairo.Callbacks@@ -29,4 +34,5 @@ import GI.Cairo.Types import GI.Cairo.Callbacks +import Data.GI.Base
GI/Cairo/Callbacks.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1
GI/Cairo/Enums.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1
GI/Cairo/Functions.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -30,7 +31,6 @@ -- function cairo_image_surface_create -- Args : [] -- Lengths : []--- hInArgs : [] -- returnType : TBasicType TVoid -- throws : False -- Skip return : False@@ -41,7 +41,7 @@ imageSurfaceCreate :: (MonadIO m) =>- m ()+ m () -- result imageSurfaceCreate = liftIO $ do cairo_image_surface_create return ()
GI/Cairo/Structs.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1
GI/Cairo/Structs/Context.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noContext :: Maybe Context noContext = Nothing++type family ResolveContextMethod (t :: Symbol) (o :: *) :: * where+ ResolveContextMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveContextMethod t Context, MethodInfo info Context p) => IsLabelProxy t (Context -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveContextMethod t Context, MethodInfo info Context p) => IsLabel t (Context -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/FontFace.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noFontFace :: Maybe FontFace noFontFace = Nothing++type family ResolveFontFaceMethod (t :: Symbol) (o :: *) :: * where+ ResolveFontFaceMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveFontFaceMethod t FontFace, MethodInfo info FontFace p) => IsLabelProxy t (FontFace -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveFontFaceMethod t FontFace, MethodInfo info FontFace p) => IsLabel t (FontFace -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/FontOptions.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -28,5 +29,16 @@ newtype FontOptions = FontOptions (ForeignPtr FontOptions) noFontOptions :: Maybe FontOptions noFontOptions = Nothing++type family ResolveFontOptionsMethod (t :: Symbol) (o :: *) :: * where+ ResolveFontOptionsMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveFontOptionsMethod t FontOptions, MethodInfo info FontOptions p) => IsLabelProxy t (FontOptions -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveFontOptionsMethod t FontOptions, MethodInfo info FontOptions p) => IsLabel t (FontOptions -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/FontType.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -28,5 +29,16 @@ newtype FontType = FontType (ForeignPtr FontType) noFontType :: Maybe FontType noFontType = Nothing++type family ResolveFontTypeMethod (t :: Symbol) (o :: *) :: * where+ ResolveFontTypeMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveFontTypeMethod t FontType, MethodInfo info FontType p) => IsLabelProxy t (FontType -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveFontTypeMethod t FontType, MethodInfo info FontType p) => IsLabel t (FontType -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/Matrix.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -28,5 +29,16 @@ newtype Matrix = Matrix (ForeignPtr Matrix) noMatrix :: Maybe Matrix noMatrix = Nothing++type family ResolveMatrixMethod (t :: Symbol) (o :: *) :: * where+ ResolveMatrixMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveMatrixMethod t Matrix, MethodInfo info Matrix p) => IsLabelProxy t (Matrix -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveMatrixMethod t Matrix, MethodInfo info Matrix p) => IsLabel t (Matrix -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/Path.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -28,5 +29,16 @@ newtype Path = Path (ForeignPtr Path) noPath :: Maybe Path noPath = Nothing++type family ResolvePathMethod (t :: Symbol) (o :: *) :: * where+ ResolvePathMethod l o = MethodResolutionFailed l o++instance (info ~ ResolvePathMethod t Path, MethodInfo info Path p) => IsLabelProxy t (Path -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolvePathMethod t Path, MethodInfo info Path p) => IsLabel t (Path -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/Pattern.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noPattern :: Maybe Pattern noPattern = Nothing++type family ResolvePatternMethod (t :: Symbol) (o :: *) :: * where+ ResolvePatternMethod l o = MethodResolutionFailed l o++instance (info ~ ResolvePatternMethod t Pattern, MethodInfo info Pattern p) => IsLabelProxy t (Pattern -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolvePatternMethod t Pattern, MethodInfo info Pattern p) => IsLabel t (Pattern -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/RectangleInt.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -10,6 +11,7 @@ -- * Exported types RectangleInt(..) ,+ newZeroRectangleInt , noRectangleInt , @@ -51,6 +53,10 @@ instance BoxedObject RectangleInt where boxedType _ = c_cairo_gobject_rectangle_int_get_type +-- | Construct a `RectangleInt` struct initialized to zero.+newZeroRectangleInt :: MonadIO m => m RectangleInt+newZeroRectangleInt = liftIO $ callocBoxedBytes 16 >>= wrapBoxed RectangleInt+ noRectangleInt :: Maybe RectangleInt noRectangleInt = Nothing @@ -73,5 +79,16 @@ rectangleIntReadHeight s = withManagedPtr s $ \ptr -> do val <- peek (ptr `plusPtr` 12) :: IO Int32 return val++type family ResolveRectangleIntMethod (t :: Symbol) (o :: *) :: * where+ ResolveRectangleIntMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveRectangleIntMethod t RectangleInt, MethodInfo info RectangleInt p) => IsLabelProxy t (RectangleInt -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveRectangleIntMethod t RectangleInt, MethodInfo info RectangleInt p) => IsLabel t (RectangleInt -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/Region.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noRegion :: Maybe Region noRegion = Nothing++type family ResolveRegionMethod (t :: Symbol) (o :: *) :: * where+ ResolveRegionMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveRegionMethod t Region, MethodInfo info Region p) => IsLabelProxy t (Region -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveRegionMethod t Region, MethodInfo info Region p) => IsLabel t (Region -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/ScaledFont.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noScaledFont :: Maybe ScaledFont noScaledFont = Nothing++type family ResolveScaledFontMethod (t :: Symbol) (o :: *) :: * where+ ResolveScaledFontMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveScaledFontMethod t ScaledFont, MethodInfo info ScaledFont p) => IsLabelProxy t (ScaledFont -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveScaledFontMethod t ScaledFont, MethodInfo info ScaledFont p) => IsLabel t (ScaledFont -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
GI/Cairo/Structs/Surface.hs view
@@ -1,4 +1,5 @@ + {- | Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte License : LGPL-2.1@@ -34,5 +35,16 @@ noSurface :: Maybe Surface noSurface = Nothing++type family ResolveSurfaceMethod (t :: Symbol) (o :: *) :: * where+ ResolveSurfaceMethod l o = MethodResolutionFailed l o++instance (info ~ ResolveSurfaceMethod t Surface, MethodInfo info Surface p) => IsLabelProxy t (Surface -> p) where+ fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)++#if MIN_VERSION_base(4,9,0)+instance (info ~ ResolveSurfaceMethod t Surface, MethodInfo info Surface p) => IsLabel t (Surface -> p) where+ fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)+#endif
gi-cairo.cabal view
@@ -1,6 +1,6 @@ -- Autogenerated, do not edit. name: gi-cairo-version: 0.1.14.12+version: 0.1.14.13 synopsis: cairo bindings description: Bindings for cairo, autogenerated by haskell-gi. homepage: https://github.com/haskell-gi/haskell-gi@@ -14,8 +14,8 @@ library default-language: Haskell2010- default-extensions: OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts- other-extensions: PatternSynonyms ScopedTypeVariables, ViewPatterns+ default-extensions: ScopedTypeVariables, CPP, OverloadedStrings, NegativeLiterals, ConstraintKinds, TypeFamilies, MultiParamTypeClasses, KindSignatures, FlexibleInstances, UndecidableInstances, DataKinds, FlexibleContexts+ other-extensions: PatternSynonyms ViewPatterns ghc-options: -fno-warn-unused-imports -fno-warn-warnings-deprecations exposed-modules: GI.Cairo.Types GI.Cairo@@ -36,7 +36,7 @@ GI.Cairo.Structs.Surface pkgconfig-depends: cairo-gobject >= 1.14 build-depends: base >= 4.7 && <5,- haskell-gi-base >= 0.12 && < 1,+ haskell-gi-base >= 0.13 && < 1, bytestring >= 0.10, containers >= 0.5, text >= 1.0,