We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81fec9f commit 3c374f8Copy full SHA for 3c374f8
haskell-commands.el
@@ -162,7 +162,20 @@ Use to update mtime on BUFFER's file."
162
(format ":!%s %s"
163
"touch"
164
(shell-quote-argument (buffer-file-name
165
- (cdr state))))))
+ (cdr state)))))
166
+ ;; Set the mtime five seconds into the future, so that ghci
167
+ ;; will actually reload it.
168
+ (haskell-process-send-string
169
+ (car state)
170
+ (if (eq system-type 'darwin)
171
+ (format ":!%s -A 05 %s"
172
+ "touch"
173
+ (shell-quote-argument (buffer-file-name
174
+ (cdr state))))
175
+ (format ":!%s -d '+5 seconds' %s"
176
177
178
+ (cdr state)))))))
179
:complete (lambda (state _)
180
(with-current-buffer (cdr state)
181
(clear-visited-file-modtime))))))
0 commit comments