In Haskell, I use the Data.Map module and its main type with the same Data.Map.Map name, for example:
import Data.Map (Map) import qualified Data.Map as M
In F #, I want to do something similar with my Item module, which contains the type of the same name:
module Item type Item = { Description: string } let empty = { Description = "" }
I can not find a way to use this module and the type is unqualified. Can I use this module and call it the following:
let getItem (): Item = Item.empty
Edit:
Adding a type alias from the client module allows you to use the Item module with qualifications and the Item type without qualifications, but is there an even better way?
type Item = Item.Item
source share