This repository was archived by the owner on Oct 7, 2020. It is now read-only.
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Plugin startup / private data #83
Closed
Description
Some plugins need to do some initial startup, and then store some state.
We need to come up with a way to do this.
This will probably include some kind of life-cycle methods exposed as part of the plugin, together with a way to store the state.
It may be simplest to define the state as being of type Data.Dynamic
, as each plugin will know how to convert it for its own internal use.
So we add
startPlugin :: IO Dynamic
and each CommandFunc
gets an additional Dynamic
parameter passed in.