Type synonyms

Note to self: use “point-free” curried type synonyms, eg

type ActionH = ActionT StateH

, not

type ActionH a = ActionT StateH a

. Type synonyms are substituted “as is”, so if you use the latter format you wouldn’t be able to use the type in partially applied setting:

ReaderT ActionH a

won’t type check

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s