[haskeline] #120: Expose Prefs programmatically

haskeline haskeline at projects.haskell.org
Thu Jul 19 02:15:53 BST 2012


#120: Expose Prefs programmatically
------------------------+---------------------------------------------------
Reporter:  acfoltzer    |        Owner:     
    Type:  enhancement  |       Status:  new
Priority:  minor        |    Milestone:     
 Version:               |   Resolution:     
Keywords:               |  
------------------------+---------------------------------------------------

Comment(by judah):

 Thanks for the suggestion!  Out of curiosity, was there a particular
 preference you wanted to be able to change programmatically?

 The original reason for hiding the Prefs constructor was so that we could
 add new preferences without making potentially breaking changes, which
 would require increasing haskeline's major version number.  For that
 reason I'd still like to hide the Prefs constructor itself.

 But it should be fine to export something like `bellStyle :: Prefs ->
 BellStyle` and `setBellStyle :: BellStyle -> Prefs -> Prefs` for each of
 the existing preferences.  Note that `bellStyle` would have to become a
 separate function instead of a record accessor like it is now.

 I probably won't have time to do this in the near future; any interest in
 submitting a patch?

-- 
Ticket URL: <http://trac.haskell.org/haskeline/ticket/120#comment:1>
haskeline <http://example.org/>
My example project


More information about the Haskeline mailing list