.hs Codice sorgente Haskell
Testo e codice sorgente
| Tipo MIME | text/x-haskell |
|---|---|
| Descrizione | Codice sorgente Haskell |
| Categoria | Testo e codice sorgente |
| Basato su | text/plain |
Domande frequenti
Che cos’è un file .hs?
Un file .hs è un formato di tipo «Codice sorgente Haskell» (tipo MIME text/x-haskell).
Come apro un file .hs?
Con qualsiasi editor di testo: Notepad++, Visual Studio Code, oppure gedit e vim su Linux. Il file contiene testo leggibile, eventualmente codice sorgente o configurazione.
Come si riconosce un vero file .hs?
Per questo formato non è registrata una firma fissa all’inizio del file; viene riconosciuto soprattutto dall’estensione. Su Linux e macOS, file --mime-type example.hs mostra il tipo presunto.
Su quale formato si basa .hs?
Tecnicamente un file .hs è un sottotipo di «Documento in testo semplice» (text/plain), quindi i programmi per quel formato di base spesso riescono a leggerlo.
Quale tipo MIME corrisponde a .hs?
Il tipo MIME è text/x-haskell. Nel server web Apache: AddType text/x-haskell .hs; in nginx: types { text/x-haskell hs; }.