Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setOfDecoder :: (Typeable a, Ord a) => Decoder a -> Decoder (Set a)

    registry-aeson Data.Registry.Aeson.Decoder

    No documentation available.

  2. setOfEncoder :: Encoder a -> Encoder (Set a)

    registry-aeson Data.Registry.Aeson.Encoder

    No documentation available.

  3. setVersion :: SafeJSON a => Value -> Value

    safe-json Data.SafeJSON

    CAUTION: Only use this function if you know what you're doing. The version will be set top-level, without inspection of the Value! (cf. removeVersion) In some rare cases, you might want to interpret a versionless Value as a certain type/version. setVersion allows you to (unsafely) insert a version field. If possible, it is advised to use a FromJSON instance instead. (One that doesn't also use safeFromJSON in its methods!) This might be needed when data sent to an API endpoint doesn't need to implement SafeJSON standards. E.g. in the case of endpoints for third parties or customers.

    USAGE:
    
    {-# LANGUAGE TypeApplications #-}
    data Test = Test String
    instance SafeJSON Test where ...
    
    >>> val = String "test" :: Value
    String "test"
    >>> encode val
    ""test""
    >>> encode $ setVersion @Test val
    "{"~v":0,"~d":"test"}"
    >>> parseMaybe safeFromJSON $ setVersion @Test val
    Just (Test "test")
    

  4. setVersion' :: SafeJSON a => Version a -> Value -> Value

    safe-json Data.SafeJSON

    Same as setVersion, but requires a Version parameter.

    >>> encode $ setVersion' (version :: Version Test) val
    "{\"~v\":0,\"~d\":\"test\"}"
    

  5. setarch :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  6. setcap :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  7. setpriv :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  8. setreg :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  9. setsid :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

  10. setterm :: ProcessType r => r

    shell-conduit Data.Conduit.Shell

    No documentation available.

Page 67 of many | Previous | Next