I have a function that returns the Price of a product, it currently looks like
priceOfProduct:: Int -> Int -> Int
Is it worth declaring
type Price = Int
so that the function becomes
priceOfProduct :: Int -> Int -> Price ?
I thought of doing this, as I then go on to use tuples of Ints, which would maybe look better if they were their own data structure.
priceVsTaxed -> Price -> Int -> (Price, Price)
Is this useful? Is this necessary?
Is this good Haskell style?
Is declaring a data structure that looks more like renaming an existing Data Structure good style?