File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,13 @@ a per-project basis."
7777; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
7878; ; Configuration
7979
80+ (defcustom  haskell-doc-prettify-types  t 
81+   " Replace some parts of types with Unicode characters like \" ∷\" 
82+ when showing type information about symbols."  
83+   :group  'haskell-doc 
84+   :type  'boolean 
85+   :safe  'booleanp )
86+ 
8087(defvar  haskell-process-end-hook  nil 
8188  " Hook for when the haskell process ends." 
8289
Original file line number Diff line number Diff line change @@ -1650,7 +1650,11 @@ CALLBACK will be called with a formatted type string."
16501650                      (type (propertize 
16511651                             (substring  response (match-end  0 ))
16521652                             'face  'eldoc-highlight-function-argument )))
1653-                   (setq  response (concat  name type))))))
1653+                   (setq  response (concat  name type)))))
1654+             (when  haskell-doc-prettify-types
1655+               (dolist  (re '((" ::" .  " ∷" " =>" .  " ⇒" " ->" .  " →" 
1656+                 (setq  response
1657+                       (replace-regexp-in-string  (car  re) (cdr  re) response)))))
16541658          (when  callback (funcall  callback response))))))))
16551659
16561660(defun  haskell-doc-sym-doc  (sym )
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments