<commit_before>function! neoformat#formatters#haskell#enabled() abort
    return ['hindent', 'stylishhaskell', 'hfmt', 'brittany', 'sortimports', 'floskell', 'ormolu']
endfunction

function! neoformat#formatters#haskell#hindent() abort
    return {
        \ 'exe' : 'hindent',
        \ 'args': ['--indent-size ' . shiftwidth()],
        \ 'stdin' : 1,
        \ }
endfunction

function! neoformat#formatters#haskell#stylishhaskell() abort
    return {
        \ 'exe': 'stylish-haskell',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#hfmt() abort
    return {
        \ 'exe': 'hfmt',
        \ 'args': ['-'],
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#brittany() abort
    return {
        \ 'exe': 'brittany',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#sortimports() abort
    return {
        \ 'exe': 'sort-imports',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#floskell() abort
    return {
        \ 'exe': 'floskell',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#ormolu() abort
    let opts = get(g:, 'ormolu_ghc_opt', [])
    if opts != []
        let opts = '-o' . join(opts, ',')
    endif
    return {
        \ 'exe' : 'ormolu',
        \ 'args': ['-p'],
        \ 'stdin' : 1,
        \ }
endfunction<commit_msg>Fix ormolu options (#272)<commit_after>function! neoformat#formatters#haskell#enabled() abort
    return ['hindent', 'stylishhaskell', 'hfmt', 'brittany', 'sortimports', 'floskell', 'ormolu']
endfunction

function! neoformat#formatters#haskell#hindent() abort
    return {
        \ 'exe' : 'hindent',
        \ 'args': ['--indent-size ' . shiftwidth()],
        \ 'stdin' : 1,
        \ }
endfunction

function! neoformat#formatters#haskell#stylishhaskell() abort
    return {
        \ 'exe': 'stylish-haskell',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#hfmt() abort
    return {
        \ 'exe': 'hfmt',
        \ 'args': ['-'],
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#brittany() abort
    return {
        \ 'exe': 'brittany',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#sortimports() abort
    return {
        \ 'exe': 'sort-imports',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#floskell() abort
    return {
        \ 'exe': 'floskell',
        \ 'stdin': 1,
        \ }
endfunction

function! neoformat#formatters#haskell#ormolu() abort
    let opts = get(g:, 'ormolu_ghc_opt', [])
    if opts != []
        let opts = '-o' . join(opts, ' -o')
    else
        let opts = ''
    endif
    return {
        \ 'exe' : 'ormolu',
        \ 'args': ['-p', opts],
        \ 'stdin' : 1,
        \ }
endfunction
{'fraction_non_alphanumeric': 0.16672372475179734, 'fraction_numerical': 0.005819924683327628, 'mean_word_length': 2.3204545454545453, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3300475', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1005, 'n_words': 191}