Skip to content

"Simplify" static method imports #346

@rahulmutt

Description

@rahulmutt

Currently, static method imports give you multiple options:

foreign import java unsafe "@new" newFile  :: String -> Java a File
foreign import java unsafe "@new" newFile1 :: String -> IO File

It would be great to unify this to:

foreign import java unsafe "@new" newFile  :: (MonadIO m) => String -> m File

The main requirement for this is that MonadIO should be in the standard library.

Con:
Makes it harder for beginners and increases the learning curve.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions