Hoogle Search
Within LTS Haskell 24.46 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setRectangleHeight :: MonadIO m => Rectangle -> Int32 -> m ()gi-pango GI.Pango.Structs.Rectangle Set the value of the “height” field. When overloading is enabled, this is equivalent to
set rectangle [ #height := value ]
setRectangleWidth :: MonadIO m => Rectangle -> Int32 -> m ()gi-pango GI.Pango.Structs.Rectangle Set the value of the “width” field. When overloading is enabled, this is equivalent to
set rectangle [ #width := value ]
setRectangleX :: MonadIO m => Rectangle -> Int32 -> m ()gi-pango GI.Pango.Structs.Rectangle Set the value of the “x” field. When overloading is enabled, this is equivalent to
set rectangle [ #x := value ]
setRectangleY :: MonadIO m => Rectangle -> Int32 -> m ()gi-pango GI.Pango.Structs.Rectangle Set the value of the “y” field. When overloading is enabled, this is equivalent to
set rectangle [ #y := value ]
setName :: Name -> DocumentedFunction e -> DocumentedFunction ehslua-packaging HsLua.Packaging.Function Renames a documented function.
setComp :: Strategy r => Comp -> Array r ix e -> Array r ix emassiv Data.Massiv.Array Set computation strategy for this array
Example
>>> :set -XTypeApplications >>> import Data.Massiv.Array >>> a = singleton @DL @Ix1 @Int 0 >>> a Array DL Seq (Sz1 1) [ 0 ] >>> setComp (ParN 6) a -- use 6 capabilities Array DL (ParN 6) (Sz1 1) [ 0 ]
setComp :: Strategy r => Comp -> Array r ix e -> Array r ix emassiv Data.Massiv.Core Set computation strategy for this array
Example
>>> :set -XTypeApplications >>> import Data.Massiv.Array >>> a = singleton @DL @Ix1 @Int 0 >>> a Array DL Seq (Sz1 1) [ 0 ] >>> setComp (ParN 6) a -- use 6 capabilities Array DL (ParN 6) (Sz1 1) [ 0 ]
setDim' :: (HasCallStack, Index ix) => ix -> Dim -> Int -> ixmassiv Data.Massiv.Core.Index Change the value of a specific dimension within the index. See setDimM for a safer version and setDimension for a type safe version.
Examples
>>> setDim' (2 :> 3 :> 4 :. 5) 3 10 2 :> 10 :> 4 :. 5
setDimM :: (Index ix, MonadThrow m) => ix -> Dim -> Int -> m ixmassiv Data.Massiv.Core.Index Set the value for an index at specified dimension.
setDimension :: forall ix (n :: Natural) . IsIndexDimension ix n => ix -> Dimension n -> Int -> ixmassiv Data.Massiv.Core.Index Type safe way to set value of index at a particular dimension.
Examples
>>> setDimension (2 :> 3 :> 4 :. 5) Dim4 10 10 :> 3 :> 4 :. 5