KittensLoveRust

u/KittensLoveRust


r/reasonml•

I'm playing around with modules and having some troubles. This is just a toy example, but it will show you my problem. (Note, this is ReScript syntax, but you get the idea.)

module type Thing = {
  type t
  type fromT

  let from: fromT => t
  let into: t => option<fromT>
}

module StringThing: Thing = {
  type t = string
  type fromT = int

  let from = i => Js.Int.toString(i)
  let into = s => Belt.Int.fromString(s)
}

let s = StringThing.from(11) // Error!

The idea is just to have some little wrapper module that can take some type and convert. Now, this is sort of a pointless thing to do, but I'm jus

35

r/emacs•

(Edit: I solved this...see below for how.)

I'm having trouble disabling the autosaves. This doesn't work:

(setq auto-save-default nil)

Tried it on multiple Emacs versions as well (26.3, 27.1, and 27.1.91, all compiled from source).

As soon as I start typing in a file (eg, `Main.elm` I get this):

.#Main.elm -> [email protected]:NNNNNNNNNN

For what it's worth, that file doesn't actually exist when I try and read it.

Unfortunately, none of these suggestions are working either:

15

You've reached the end of this feed.